W3cubDocs

/Symfony 2.8

Symfony\Component\Finder\Expression\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 public Regex create(string $expr)

Parameters

string $expr

Return Value

Regex

Exceptions

InvalidArgumentException

public __construct(string $pattern, string $options = '', string $delimiter = null)

Parameters

string $pattern
string $options
string $delimiter

public string __toString()

Return Value

string

public string render()

Renders string representation of expression.

Return Value

string

public string renderPattern()

Renders string representation of pattern.

Return Value

string

public bool isCaseSensitive()

Returns value case sensitivity.

Return Value

bool

public int getType()

Returns expression type.

Return Value

int

public ValueInterface prepend(string $expr)

Parameters

string $expr

Return Value

ValueInterface

public ValueInterface append(string $expr)

Parameters

string $expr

Return Value

ValueInterface

public bool hasOption(string $option)

Parameters

string $option

Return Value

bool

public Regex addOption(string $option)

Parameters

string $option

Return Value

Regex

public Regex removeOption(string $option)

Parameters

string $option

Return Value

Regex

public Regex setStartFlag(bool $startFlag)

Parameters

bool $startFlag

Return Value

Regex

public bool hasStartFlag()

Return Value

bool

public Regex setEndFlag(bool $endFlag)

Parameters

bool $endFlag

Return Value

Regex

public bool hasEndFlag()

Return Value

bool

public Regex setStartJoker(bool $startJoker)

Parameters

bool $startJoker

Return Value

Regex

public bool hasStartJoker()

Return Value

bool

public Regex setEndJoker(bool $endJoker)

Parameters

bool $endJoker

Return Value

Regex

public bool hasEndJoker()

Return Value

bool

public Regex replaceJokers(array $replacement)

Parameters

array $replacement

Return Value

Regex

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Finder/Expression/Regex.html