Regex
class Regex implements ValueInterface
Constants
START_FLAG | |
END_FLAG | |
BOUNDARY | |
JOKER | |
ESCAPING |
Methods
static Regex | create(string $expr) | |
__construct(string $pattern, string $options = '', string $delimiter = null) | ||
string | __toString() | |
string | render() Renders string representation of expression. | |
string | renderPattern() Renders string representation of pattern. | |
bool | isCaseSensitive() Returns value case sensitivity. | |
int | getType() Returns expression type. | |
ValueInterface | prepend(string $expr) | |
ValueInterface | append(string $expr) | |
bool | hasOption(string $option) | |
Regex | addOption(string $option) | |
Regex | removeOption(string $option) | |
Regex | setStartFlag(bool $startFlag) | |
bool | hasStartFlag() | |
Regex | setEndFlag(bool $endFlag) | |
bool | hasEndFlag() | |
Regex | setStartJoker(bool $startJoker) | |
bool | hasStartJoker() | |
Regex | setEndJoker(bool $endJoker) | |
bool | hasEndJoker() | |
Regex | replaceJokers(array $replacement) |
Details
static Regex create(string $expr)
Parameters
string | $expr |
Return Value
Regex |
Exceptions
InvalidArgumentException |
__construct(string $pattern, string $options = '', string $delimiter = null)
Parameters
string | $pattern | |
string | $options | |
string | $delimiter |
string __toString()
Return Value
string |
string render()
Renders string representation of expression.
Return Value
string |
string renderPattern()
Renders string representation of pattern.
Return Value
string |
bool isCaseSensitive()
Returns value case sensitivity.
Return Value
bool |
int getType()
Returns expression type.
Return Value
int |
ValueInterface prepend(string $expr)
Parameters
string | $expr |
Return Value
ValueInterface |
ValueInterface append(string $expr)
Parameters
string | $expr |
Return Value
ValueInterface |
bool hasOption(string $option)
Parameters
string | $option |
Return Value
bool |
Regex addOption(string $option)
Parameters
string | $option |
Return Value
Regex |
Regex removeOption(string $option)
Parameters
string | $option |
Return Value
Regex |
Regex setStartFlag(bool $startFlag)
Parameters
bool | $startFlag |
Return Value
Regex |
bool hasStartFlag()
Return Value
bool |
Regex setEndFlag(bool $endFlag)
Parameters
bool | $endFlag |
Return Value
Regex |
bool hasEndFlag()
Return Value
bool |
Regex setStartJoker(bool $startJoker)
Parameters
bool | $startJoker |
Return Value
Regex |
bool hasStartJoker()
Return Value
bool |
Regex setEndJoker(bool $endJoker)
Parameters
bool | $endJoker |
Return Value
Regex |
bool hasEndJoker()
Return Value
bool |
Regex replaceJokers(array $replacement)
Parameters
array | $replacement |
Return Value
Regex |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Finder/Expression/Regex.html