mirror of
https://github.com/Respect/Validation.git
synced 2026-03-16 23:35:45 +01:00
606 B
606 B
Regex
Regex(string $regex)
Validates whether the input matches a defined regular expression.
v::regex('/[a-z]/')->validate('a'); // true
Message template for this validator includes {{regex}}.
Categorization
- Strings
Changelog
| Version | Description |
|---|---|
| 0.3.9 | Created |
See also: