A PHP implementation to match JavaScript's RegExp class as closely as possible.
A lot of behavior in this class is reversed engineered, so improvements are welcome!
- internal
- since 9.16.0
CloneableFinalInstantiable
- Implements
Stringable
Properties |
public $lastIndex = 0
|
public $source = NULL
|
Methods |
public __construct( $regex)
|
public __toString() : string |
public exec( $str) Run the regular expression against the given string.
|