Copied!
  • internal
  • since 9.16.0.0
CloneableFinalInstantiable
Properties
public $lastIndex = 0
 
  • var int
Methods
public __construct( $caseInsensitive)
 
  • param bool $caseInsensitive
public _buildModeRegex( $mode)
 
  • internal
  • param \Mode $mode
  • return self
public exec( $s)
 
  • param string $s
  • return \RegExMatch|null
Properties
private $caseInsensitive = NULL
 
  • var bool
private $matchAt = 1
 
  • var int
private $matcherRe = NULL
 
  • var \RegEx|null
private $matchIndexes = []
 
  • var array<int,\Mode|string>
private $mode = NULL
 
  • var \Mode
private $regexes = []
 
  • var array<int,array<int,\Mode|string>>
Methods
private addRule( $rule, $regex)
 
  • param \Mode|string $rule
  • param string $regex
  • return void
private joinRe( $regexps, $separator)
 

joinRe logically computes regexps.join(separator), but fixes the backreferences so they continue to match.

it also places each individual regular expression into it's own match group, keeping track of the sequencing of those match groups is currently an exercise for the caller. :-)

  • param array<int,string> $regexps
  • param string $separator
  • return string
private langRe( $value, $global = false)
 
  • param string $value
  • param bool $global
  • return \RegEx
private reCountMatchGroups( $re)
 
  • param \RegEx|string $re
  • return int
private reStr( $re)
 
  • param \RegEx|string $re
  • return mixed
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration