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

Parle\RLexer::insertMacro

(PECL parle >= 0.5.1)

Parle\RLexer::insertMacro — Insert regex macro

说明

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

参数

name

Name of the macros.

regex

Regular expression.

返回值

没有返回值。

相关文章
php parle the parle rlexer classphp parle the parle rparser classphp ncurses 函数 insert character moving rest of line including character at current positionphp parle 简介php mongodb bson regex returns the string representation of this regexphp parle lexer define token callbackphp parle lexer insert regex macrophp parle parser reset parser statephp parle rlexer process next lexer rulephp parle rlexer finalize the lexer rule setphp parle rlexer define token callbackphp parle rlexer pass the data for processingphp parle rlexer dump the state machinephp parle rlexer retrieve the current tokenphp parle rlexer insert regex macrophp parle rlexer add a lexer rulephp parle rlexer push a new start statephp parle rlexer reset lexerphp parle rparser validate inputphp parle 安装/配置
关注编程学问公众号
编程学问网 湘ICP备20001732号