我正在尝试使用Atom替换文档中多个不同文本的外部标签结构。还使用REGEX,我对它不了解,无法提出自己的解决方案
要搜索的HTML <span class="klass">Any text string</span>
<span class="klass">Any text string</span>
替换为 <code>Any text string</code>
<code>Any text string</code>
我的正则表达式 (<?span class="klass">)+[\w]+(<?/span>)
(<?span class="klass">)+[\w]+(<?/span>)
是否有通配符将[\ w]部分“保留”到替换结果中?
html regex replace
html ×1
regex ×1
replace ×1