createMatcher(); if (! $matcher->match($value, $pattern)) { $error = $matcher->getError(); return false; } return true; } }