更新时间:2023-02-19 11:47:46
您必须使用基于 \ G
的模式来确保匹配是连续的.
You have to use a \G
based pattern to ensure that matches are contiguous.
搜索:(?:\ G(?!^)|'data/)[^'] * \ K []
替换: _
第一个匹配项使用交替的第二个分支,然后下一个匹配项是连续的,并使用第一个分支.
The first match uses the second branch of the alternation, then the next matches are contiguous and use the first branch.