Zend\Validator\Regex::setPattern
Sets the pattern option
Signature
public function setPattern(string
$pattern )
Parameters
$pattern
— string
Returns
- Regex
- Provides a fluent interface
Errors/Exceptions
-
InvalidArgumentException
- if there is a fatal error in pattern matching