]|>|<|javascript:){1,}/', $value)) { return false; } return true; } public static function email($value, array $context) { if(preg_match('/^[a-zA-Z0-9.!#$%&’*+\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/', $value)) { return true; } return false; } }