mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 15:50:03 +01:00
27 lines
441 B
Markdown
27 lines
441 B
Markdown
# Regex
|
|
|
|
- `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}}`
|
|
|
|
## Changelog
|
|
|
|
Version | Description
|
|
--------|-------------
|
|
0.3.9 | Created
|
|
|
|
***
|
|
See also:
|
|
|
|
- [Alnum](Alnum.md)
|
|
- [Alpha](Alpha.md)
|
|
- [Contains](Contains.md)
|
|
- [Digit](Digit.md)
|
|
- [EndsWith](EndsWith.md)
|
|
- [StartsWith](StartsWith.md)
|