编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « Parle\Lexer::getToken
  • Parle\Lexer::push »
  • PHP Manual
  • Parle\Lexer
  • Insert regex macro

Parle\Lexer::insertMacro

(PECL parle >= 0.5.1)

Parle\Lexer::insertMacro — Insert regex macro

说明

public 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.

参数

name

Name of the macros.

regex

Regular expression.

返回值

没有返回值。

相关文章
php parle the parle lexer classphp parle the parle token classphp 多字节字符串 函数 set/get character encoding for multibyte regexphp ncurses 函数 insert a line move rest of screen downphp parle lexer process next lexer rulephp parle lexer finalize the lexer rule setphp parle lexer define token callbackphp parle lexer pass the data for processingphp parle lexer dump the state machinephp parle lexer retrieve the current tokenphp parle lexer insert regex macrophp parle lexer add a lexer rulephp parle lexer reset lexerphp parle parser retrieve a matching part of a rulephp parle rlexer process next lexer rulephp parle rlexer finalize the lexer rule setphp parle rlexer insert regex macrophp parle rlexer add a lexer rulephp parle rlexer reset lexerphp spldoublylinkedlist add/insert a new value at the specified index
关注编程学问公众号
编程学问网 湘ICP备20001732号