25 public function validate($value, $parameters = array())
27 $match = (bool) preg_match($this->regEx, $value, $matchedSubstring);
34 $completeMatch = $match && ($value === $matchedSubstring[0]);
36 if (preg_last_error() !== PREG_NO_ERROR) {
38 $this->
log(
"Regular expression warning: error code " . preg_last_error());
41 return $completeMatch;