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
Properties
public $lastIndex
 


  • var int
public $source
 


  • var string
Methods
public __construct( $regex)
 


    public __toString()
    public exec( $str)
     
    Run the regular expression against the given string.

    • since 9.16.0.0
    • return RegExMatch|null
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only