respect-validation/docs/rules/Regex.md
Henrique Moody 10df3211f5
Add "Categorization" section to rule documentations
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-11 19:16:21 +02:00

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