public function match($value, $pattern) { $this->assertNoEval($pattern); if (!isset($value)) { return null; } return preg_match($pattern, $value); }