最小组团(Atomic Groups) 最小组团是无捕捉的特殊正则表达式分组。通常用来提高正则表达式的效能,也能用于消除特定匹配。
基于186个网页-相关网页
最小组团
Minimum group
以上为机器翻译结果,长、整句建议使用 人工翻译 。
此时,最小组团就发挥作用了:正则引擎会放弃所有回溯位置。
At this point, the atomic group will kick in. The engine will discard all backtracking positions.
youdao
当正则引擎针对最小组团进行匹配时,它会跳过组团内标记的回溯位置。
When the regex engine matches an atomic group, it will discard backtracting positions that came with all tokens inside it.
应用推荐
模块上移
模块下移
不移动