Parle\Lexer::insertMacro
PHP function
Edit on GitHub ✎
(PECL parle >= 0.5.1)
Insert regex macro
Description
Parle\Lexer::insertMacro(string $name, string $regex): void
Insert a regex macro, that can be later used as a shortcut and included in other regular expressions.
Parameters
nameName of the macros.
regexRegular expression.
Return Values
Void