php8.5
Home/ Manual/ parle / rlexer/ Parle\RLexer::insertMacro

Parle\RLexer::insertMacro

PHP function Edit on GitHub ✎

(PECL parle >= 0.5.1)

Insert regex macro

Description

Parle\RLexer::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

name

Name of the macros.

regex

Regular expression.

Return Values

Void

Source: reference/parle/parle/rlexer/insertmacro.xml · from the official PHP manual (php/doc-en)