更新时间:2023-02-26 12:05:06
(?:...)仍匹配,它只是不为 \1 / $ 1 / .groups(1) / etc。
(?:...)
\1
$ 1
.groups(1)
(?:...) still matches, it just doesn't create a new group for purposes of \1/$1/.groups(1)/etc.
(?:...)
$1
.groups(1)
Notepad++ 正则表达式反向引用似乎不起作用
在 Perl 中替换特定的捕获组而不是整个正则表达式
由于重复捕获组而不是捕获重复组,正则表达式不匹配
正则表达式 Javascript 捕获组与量词不工作
PHP 中的条件正则表达式似乎不起作用