RegExp Class Reference

Detailed Description

RegExp validates against the given regular expression.

Configuration example:

// integer or empty
regexp:{"pattern":"/^[0-9]*$/"}
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 27 of file RegExp.php.

+ Inheritance diagram for RegExp:

Public Member Functions

 validate ($value, $options=null, $context=null)
 

Member Function Documentation

◆ validate()

validate (   $value,
  $options = null,
  $context = null 
)
See also
ValidateType::validate $options is an associative array with key 'pattern'

Implements ValidateType.

Definition at line 33 of file RegExp.php.