我正在寻找一个正则表达式来跳过字符串中的data-value="4"属性,例如,我有一个字符串,即 Hello this is string <sfpart contenteditable="false" data-value="4">‏</sfpart> and the 4 number in string 现在,在上面的字符串中,我想将4替换为<span class=&
在我的示例中,用户可以双击任何单词,将其封装在span元素中,但是b/c --这是基于空格拆分的,如果单词后面跟着标点符号,它就不能工作。HTML: <span class="orange color-coding">Hello world this is some text.</span> <span</em