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 64
static Regex create(string $expr)

Parameters

string $expr

Return Value

Regex

Exceptions

InvalidArgumentException

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

Parameters

string $pattern
string $options
string $delimiter

at line line 101
string __toString()

Return Value

string

at line line 109
string render()

Renders string representation of expression.

Return Value

string

at line line 120
string renderPattern()

Renders string representation of pattern.

Return Value

string

at line line 132
bool isCaseSensitive()

Returns value case sensitivity.

Return Value

bool

at line line 140
int getType()

Returns expression type.

Return Value

int

at line line 148
ValueInterface prepend(string $expr)

Parameters

string $expr

Return Value

ValueInterface

at line line 158
ValueInterface append(string $expr)

Parameters

string $expr

Return Value

ValueInterface

at line line 170
bool hasOption(string $option)

Parameters

string $option

Return Value

bool

at line line 180
Regex addOption(string $option)

Parameters

string $option

Return Value

Regex

at line line 194
Regex removeOption(string $option)

Parameters

string $option

Return Value

Regex

at line line 206
Regex setStartFlag(bool $startFlag)

Parameters

bool $startFlag

Return Value

Regex

at line line 216
bool hasStartFlag()

Return Value

bool

at line line 226
Regex setEndFlag(bool $endFlag)

Parameters

bool $endFlag

Return Value

Regex

at line line 236
bool hasEndFlag()

Return Value

bool

at line line 246
Regex setStartJoker(bool $startJoker)

Parameters

bool $startJoker

Return Value

Regex

at line line 256
bool hasStartJoker()

Return Value

bool

at line line 266
Regex setEndJoker(bool $endJoker)

Parameters

bool $endJoker

Return Value

Regex

at line line 276
bool hasEndJoker()

Return Value

bool

at line line 286
Regex replaceJokers(array $replacement)

Parameters

array $replacement

Return Value

Regex