class Regex implements ValueInterface

Constants

START_FLAG

END_FLAG

BOUNDARY

JOKER

ESCAPING

Methods

static Regex
create(string $expr)

No description

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

No description

string
__toString()

No description

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.

prepend(string $expr)

No description

append(string $expr)

No description

bool
hasOption(string $option)

No description

addOption(string $option)

No description

removeOption(string $option)

No description

setStartFlag(bool $startFlag)

No description

bool
hasStartFlag()

No description

setEndFlag(bool $endFlag)

No description

bool
hasEndFlag()

No description

setStartJoker(bool $startJoker)

No description

bool
hasStartJoker()

No description

setEndJoker(bool $endJoker)

No description

bool
hasEndJoker()

No description

replaceJokers(array $replacement)

No description

Details

at line line 62
static Regex create(string $expr)

Parameters

string $expr

Return Value

Regex

Exceptions

InvalidArgumentException

at line line 81
__construct(string $pattern, string $options = '', string $delimiter = null)

Parameters

string $pattern
string $options
string $delimiter

at line line 95
string __toString()

Return Value

string

at line line 103
string render()

Renders string representation of expression.

Return Value

string

at line line 114
string renderPattern()

Renders string representation of pattern.

Return Value

string

at line line 126
bool isCaseSensitive()

Returns value case sensitivity.

Return Value

bool

at line line 134
int getType()

Returns expression type.

Return Value

int

at line line 142
ValueInterface prepend(string $expr)

Parameters

string $expr

Return Value

ValueInterface

at line line 152
ValueInterface append(string $expr)

Parameters

string $expr

Return Value

ValueInterface

at line line 164
bool hasOption(string $option)

Parameters

string $option

Return Value

bool

at line line 174
Regex addOption(string $option)

Parameters

string $option

Return Value

Regex

at line line 188
Regex removeOption(string $option)

Parameters

string $option

Return Value

Regex

at line line 200
Regex setStartFlag(bool $startFlag)

Parameters

bool $startFlag

Return Value

Regex

at line line 210
bool hasStartFlag()

Return Value

bool

at line line 220
Regex setEndFlag(bool $endFlag)

Parameters

bool $endFlag

Return Value

Regex

at line line 230
bool hasEndFlag()

Return Value

bool

at line line 240
Regex setStartJoker(bool $startJoker)

Parameters

bool $startJoker

Return Value

Regex

at line line 250
bool hasStartJoker()

Return Value

bool

at line line 260
Regex setEndJoker(bool $endJoker)

Parameters

bool $endJoker

Return Value

Regex

at line line 270
bool hasEndJoker()

Return Value

bool

at line line 280
Regex replaceJokers(array $replacement)

Parameters

array $replacement

Return Value

Regex