Spec-Zone.ru › Symfony 2.8

Регулярные выражения

класс Regex реализует ValueInterface

Константы

START_FLAG
END_FLAG
BOUNDARY
JOKER
ESCAPING

Методы

static Regex create(string $expr)
__construct(string $pattern, string $options = '', string $delimiter = null)
string __toString()
string render()

Отображает строковое представление выражения.

string renderPattern()

Отображает строковое представление шаблона.

bool isCaseSensitive()

Возвращает чувствительность к регистру.

int getType()

Возвращает тип выражения.

$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)

Подробное описание

статический Regex create(string $expr)

Параметры

string $expr

Возвращаемое значение

Regex

Исключения

InvalidArgumentException

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

Параметры

string $pattern
string $options
string $delimiter

string __toString()

Возвращаемое значение

string

string render()

Отображает строковое представление выражения.

Возвращаемое значение

string

string renderPattern()

Отображает строковое представление шаблона.

Возвращаемое значение

string

bool isCaseSensitive()

Возвращает значение чувствительности к регистру.

Возвращаемое значение

bool

int getType()

Возвращает тип выражения.

Возвращаемое значение

int

$this prepend(string $expr)

Параметры

string $expr

Возвращаемое значение

$this

$this append(string $expr)

Параметры

string $expr

Возвращаемое значение

$this

bool hasOption(string $option)

Параметры

string $option

Возвращаемое значение

bool

$this addOption(string $option)

Параметры

string $option

Возвращаемое значение

$this

$this removeOption(string $option)

Параметры

string $option

Возвращаемое значение

$this

$this setStartFlag(bool $startFlag)

Параметры

bool $startFlag

Возвращаемое значение

$this

bool hasStartFlag()

Возвращаемое значение

bool

$this setEndFlag(bool $endFlag)

Параметры

bool $endFlag

Возвращаемое значение

$this

bool hasEndFlag()

Возвращаемое значение

bool

$this setStartJoker(bool $startJoker)

Параметры

bool $startJoker

Возвращаемое значение

$this

bool hasStartJoker()

Возвращаемое значение

bool

$this setEndJoker(bool $endJoker)

Параметры

bool $endJoker

Возвращаемое значение

$this

bool hasEndJoker()

Возвращаемое значение

bool

$this replaceJokers($replacement)

Параметры

$replacement

Возвращаемое значение

$this

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API