public static function validatePattern(IControl $control, $pattern) { return (bool) Strings::match($control->getValue(), "^(?:{$pattern})\\zu"); }