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. | |
$this | prepend(string $expr) | |
$this | append(string $expr) | |
bool | hasOption(string $option) | |
$this | addOption(string $option) | |
$this | removeOption(string $option) | |
$this | setStartFlag(bool $startFlag) | |
bool | hasStartFlag() | |
$this | setEndFlag(bool $endFlag) | |
bool | hasEndFlag() | |
$this | setStartJoker(bool $startJoker) | |
bool | hasStartJoker() | |
$this | setEndJoker(bool $endJoker) | |
bool | hasEndJoker() | |
$this | replaceJokers($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 |
$this prepend(string $expr)
Parameters
string | $expr |
Return Value
$this |
$this append(string $expr)
Parameters
string | $expr |
Return Value
$this |
bool hasOption(string $option)
Parameters
string | $option |
Return Value
bool |
$this addOption(string $option)
Parameters
string | $option |
Return Value
$this |
$this removeOption(string $option)
Parameters
string | $option |
Return Value
$this |
$this setStartFlag(bool $startFlag)
Parameters
bool | $startFlag |
Return Value
$this |
bool hasStartFlag()
Return Value
bool |
$this setEndFlag(bool $endFlag)
Parameters
bool | $endFlag |
Return Value
$this |
bool hasEndFlag()
Return Value
bool |
$this setStartJoker(bool $startJoker)
Parameters
bool | $startJoker |
Return Value
$this |
bool hasStartJoker()
Return Value
bool |
$this setEndJoker(bool $endJoker)
Parameters
bool | $endJoker |
Return Value
$this |
bool hasEndJoker()
Return Value
bool |
$this replaceJokers($replacement)
Parameters
$replacement |
Return Value
$this |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Finder/Expression/Regex.html