GoLang Parle\Lexer::insertMacro

request it (237)
GoLang replacement for PHP's Parle\Lexer::insertMacro [edit | history]



Do you know a GoLang replacement for PHP's Parle\Lexer::insertMacro? Write it!

PHP Parle\Lexer::insertMacro

PHP original manual for Parle\Lexer::insertMacro [ show | php.net ]

Parle\Lexer::insertMacro

(PECL parle >= 0.5.1)

Parle\Lexer::insertMacroInsert regex macro

Description

public void Parle\Lexer::insertMacro ( string $name , string $regex )

Insert a regex macro, that can be later used as a shortcut and included in other regular expressions.

Parameters

name

Name of the macros.

regex

Regular expression.

Return Values

No value is returned.