AttributePreprocessor
class AttributePreprocessor extends Regexp
Properties
protected bool | $isGlobal | from Regexp | |
protected string | $jsRegexp | from Regexp | |
protected string | $regexp | from Regexp |
Methods
Return an array-based representation of this object to be used for parsing
Return all the named captures with a standalone regexp that matches them
Return the expression used in each named capture
Return all the attributes created by the preprocessor along with the regexp that matches them
Return the regexp this preprocessor is based on
Details
in
Regexp at line 40
__construct(string $regexp, bool $isGlobal = false)
Constructor
in
Regexp at line 56
string
__toString()
Return this regexp as a string
in
Regexp 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
in
Regexp at line 72
mixed
filterConfig($target)
Return the config value for given target
in
Regexp at line 82
string[]
getCaptureNames()
Return the name of each capture in this regexp
in
Regexp at line 92
string
getJS()
Return this regexp's JavaScript representation
in
Regexp at line 107
array
getNamedCaptures()
Return all the named captures with a standalone regexp that matches them
in
Regexp at line 134
protected array
getNamedCapturesExpressions(array $tokens)
Return the expression used in each named capture
in
Regexp at line 162
void
setJS(string $jsRegexp)
Set this regexp's JavaScript representation
at line 20
array
getAttributes()
Return all the attributes created by the preprocessor along with the regexp that matches them
at line 30
string
getRegexp()
Return the regexp this preprocessor is based on