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: