2012. Class

2012.1. Zend\Validator\Regex

2012.1.1. Methods

2012.1.1.1. __construct

__construct()

Sets validator options

Parameters:string|Traversable
Throws ExceptionInvalidArgumentException:
 On missing ‘pattern’ parameter

2012.1.1.2. getPattern

getPattern()

Returns the pattern option

Return type:string

2012.1.1.3. setPattern

setPattern()

Sets the pattern option

Parameters:string
Throws ExceptionInvalidArgumentException:
 if there is a fatal error in pattern matching
Return type:Regex Provides a fluent interface

2012.1.1.4. isValid

isValid()

Returns true if and only if $value matches against the pattern option

Parameters:string
Return type:bool

2012.1.2. Constants

2012.1.2.1. INVALID

2012.1.2.2. NOT_MATCH

2012.1.2.3. ERROROUS