respect-validation/docs/Regex.md
Henrique Moody 2a2e1d577e
Change how documentation of rules are presented
Rules are not always used from the alias `v`, neither called staticaly.
2017-03-27 17:26:21 +02:00

375 B

Regex

  • 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: