respect-validation/docs/Regex.md
Henrique Moody 66027b85a5 Documentation improvements
- Add a space after comments with `//`;
- Add missing "See also" sections in some files
2015-10-19 22:55:05 -02:00

21 lines
378 B
Markdown

# Regex
- `v::regex(string $regex)`
Evaluates a regex on the input and validates if matches
```php
v::regex('/[a-z]/')->validate('a'); // true
```
Message template for this validator includes `{{regex}}`
***
See also:
* [Alnum](Alnum.md)
* [Alpha](Alpha.md)
* [Contains](Contains.md)
* [Digit](Digit.md)
* [EndsWith](EndsWith.md)
* [StartsWith](StartsWith.md)