Page 1 of 1

小BUG???

Posted: Apr 29 2009, 17:36
by ddbb
不知道这个在帮助文件里有没有说....

我规则里用的是 value=$AV(3|37|38)

后面的 37|38 没有效果.....反过来写就没问题了......value=$AV(37|38|3)

Re: 小BUG???

Posted: Apr 30 2009, 11:35
by phoenix
不是bug,是 proxomitron 所使用的正则引擎,也是现在大多数正则引擎的特性,详情请参考:http://www.regular-expressions.info/engine.html

Re: 小BUG???

Posted: Sep 11 2009, 11:17
by phoenix
补充一下,$AV() 命令有一个类似正则表达式中的 Atomic Grouping 的特性:
An atomic group is a group that, when the regex engine exits from it, automatically throws away all backtracking positions remembered by any tokens inside the group.
如果不用 $AV() ,而是写成 value="(3|37|38)" ,那么 (3|37|38) 这个 group 是可以 backtracking 的。

Blockfile 也有 Atomic Grouping 这个特性,请参考 http://www.proxomitron.cn/help/BlockLis ... ation.html 中的 Limitations... 一节。