编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 stack classphp cubrid 函数 insert a single element to set type column using oidphp ncurses 函数 insert lines before current line scrolling down negative numbers delete and scroll up php parle lexer pass the data for processingphp parle lexer insert regex macrophp parle parser declare a token with right associativityphp 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 process next parser rulephp parle stack pop an item from the stackphp solrquery sets the factor by which the regex fragmenter can stray from the ideal fragment size
关注编程学问公众号
编程学问网 湘ICP备20001732号