Метод | Описание | |
---|---|---|
__construct ( boolean $case ) | Constructor. Starts with no patterns. | |
addPattern ( string $pattern, string $label = true ) | Adds a pattern with an optional label. | |
match ( string $subject, string &$match ) : boolean | Attempts to match all patterns at once against a string. |
Метод | Описание | |
---|---|---|
getCompoundedRegex ( ) | Compounds the patterns into a single regular expression separated with the "or" operator. | |
getPerlMatchingFlags ( ) : string | Accessor for perl regex mode flags to use. |
public __construct ( boolean $case ) | ||
$case | boolean | True for case sensitive, false for insensitive. |
public addPattern ( string $pattern, string $label = true ) | ||
$pattern | string | Perl style regex, but ( and ) lose the usual meaning. |
$label | string | Label of regex to be returned on a match. |
protected getCompoundedRegex ( ) |
protected getPerlMatchingFlags ( ) : string | ||
Результат | string | Perl regex flags. |