Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用升华文本中的regexp替换文本_Regex_Sublimetext2_Sublimetext3_Text Processing - Fatal编程技术网

用升华文本中的regexp替换文本

用升华文本中的regexp替换文本,regex,sublimetext2,sublimetext3,text-processing,Regex,Sublimetext2,Sublimetext3,Text Processing,如何用升华文本中的部分旧文本替换文本 我有: <span class="foo">some text</span> <span class="foo">another text</span> 不工作搜索:(.*) 替换:$1使用$1代替{1}替换文本谢谢。我的论点错了。 <b>some text</b> <b>another text</b> <span class="foo">(\w

如何用升华文本中的部分旧文本替换文本

我有:

<span class="foo">some text</span>
<span class="foo">another text</span>
不工作

搜索:
(.*)


替换:
$1

使用$1代替{1}替换文本

谢谢。我的论点错了。
<b>some text</b>
<b>another text</b>
<span class="foo">(\w+)</span> 
{1}