When the regex engine matches an atomic group, it will discard backtracting positions that came with all tokens inside it.
当正则引擎针对最小组团进行匹配时,它会跳过组团内标记的回溯位置。
Given a regex and a datum, a regex engine yields whether the datum matches a pattern and, if a match was found, what matched.
给定一个正则表达式和数据,正则表达式引擎将得到数据是否匹配模式及匹配内容(如果找到匹配)等结果。
If the regex engine is given the word 'engineering', it will correctly match 'engineer'. The next word boundary, \ b, will not match.
如果把“engineering”拿去匹配,正则引擎会先匹配到“engineer”,但接下来就遇到了字词边界,b,所以匹配不成功。
If all possible paths through the regex have been attempted but a match was not found, the regex engine goes back to step 2 to try again at the next character in the string.
如果正则表达式的所有可能路径都尝试过了,但是没有成功地匹配,那么正则表达式引擎回到第二步,从字符串的下一个字符重新尝试。
One of the reasons I decided to develop XI now was to experiment with the new regular expression (regex) engine that's built into JDK 1.4.
我决定现在开发XI的原因之一是想要用已构建到JD K 1.4中的新的正则表达式(regex)引擎进行实验。
One of the reasons I decided to develop XI now was to experiment with the new regular expression (regex) engine that's built into JDK 1.4.
我决定现在开发XI的原因之一是想要用已构建到JD K 1.4中的新的正则表达式(regex)引擎进行实验。
应用推荐