<h2>WELCOME TO <span>ELE</span> - A MINIMAL BUSINESS THEME</h2>
如何选中h2和span元素的content部分?
示例如下:
WELCOME TO ELE - A MINIMAL BUSINESS THEME
正则的使用环境不局限于javascript, look behind如果用得上尽管用.
<h2>WELCOME TO <span>ELE</span> - A MINIMAL BUSINESS THEME</h2>
如何选中h2和span元素的content部分?
示例如下:
WELCOME TO ELE - A MINIMAL BUSINESS THEME
正则的使用环境不局限于javascript, look behind如果用得上尽管用.
3 回答2.6k 阅读✓ 已解决
5 回答1.8k 阅读
1 回答1.3k 阅读✓ 已解决
这种需求为什么一定要正则呢?直接去掉标签不就行了么?