tao-test/app/vendor/respect/validation/docs/rules/Regex.md

454 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}}


See also: