Regexp
class Regexp implements ConfigProvider, FilterableConfigValue
Properties
protected bool | $isGlobal | ||
protected string | $jsRegexp | ||
protected string | $regexp |
Methods
Constructor
Return this regexp as a string
Return an array-based representation of this object to be used for parsing
Return the config value for given target
Return the name of each capture in this regexp
Return this regexp's JavaScript representation
Return all the named captures with a standalone regexp that matches them
Return the expression used in each named capture
Set this regexp's JavaScript representation
Details
at line 40
__construct(string $regexp, bool $isGlobal = false)
Constructor
at line 56
string
__toString()
Return this regexp as a string
at line 64
array|Dictionary|null
asConfig()
Return an array-based representation of this object to be used for parsing
NOTE: if this method was named getConfig() it could interfere with magic getters from the Configurable trait
at line 72
mixed
filterConfig($target)
Return the config value for given target
at line 82
string[]
getCaptureNames()
Return the name of each capture in this regexp
at line 92
string
getJS()
Return this regexp's JavaScript representation
at line 107
array
getNamedCaptures()
Return all the named captures with a standalone regexp that matches them
at line 134
protected array
getNamedCapturesExpressions(array $tokens)
Return the expression used in each named capture
at line 162
void
setJS(string $jsRegexp)
Set this regexp's JavaScript representation