我如何用 sublime text 中的部分旧文本替换文本。
我有:
<span class="foo">some text</span>
<span class="foo">another text</span>
我想要:
<b>some text</b>
<b>another text</b>
搜索
<span class="foo">(\w+)</span>
并替换为
{1}
不工作
最佳答案
搜索:<span class="foo">(.*?)</span>
替换:<b>$1</b>
关于regex - 在 Sublime Text 中用正则表达式替换文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24795816/