Validations::pattern()
Validates if the field value matches defined pattern
Parameters
Name | Type | Default |
---|---|---|
$field * | Kirby\Form\Field |Kirby\Form\FieldClass |
– |
$value * | – |
Return type
bool
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |