mirror of
https://github.com/Respect/Validation.git
synced 2024-06-29 10:40:24 +02:00
207 B
207 B
Regex
v::regex(string $regex)
Evaluates a regex on the input and validates if matches
v::regex('/[a-z]/')->validate('a'); //true
Message template for this validator includes {{regex}}