|
3楼
楼主 |
发表于 2016-1-10 21:22:43
|
只看该作者
本帖最后由 2011star21cn 于 2016-1-10 21:25 编辑
谢谢O大
不过这个式子没有能达到结果
替换多次后会把<div class="C2_word_form">...</div>外面的C2_inline_word也替换掉
初始代码
<div class="C2_word_form"><span>also <span class="C2_inline_word">twenty-four seven</span></span></div><div class="C2_explanation_box"><span class="C2_explanation_label">[ADV: ADV after v]</span><span class="C2_explanation_content">If something happens <span class="C2_inline_word">24-7</span>, it happens all the time without ever stopping. <span class="C2_inline_word">24-7</span> means twenty-four hours a day, seven days a week.<span class="C2_ex_label_end">[mainly AM, INFORMAL]</span></span></div>
替换后代码
<div class="C2_word_form"><span>also <span class="C2_word_form_word">twenty-four seven</span></span></div><div class="C2_explanation_box"><span class="C2_explanation_label">[ADV: ADV after v]</span><span class="C2_explanation_content">If something happens <span class="C2_word_form_word">24-7</span>, it happens all the time without ever stopping. <span class="C2_word_form_word">24-7</span> means twenty-four hours a day, seven days a week.<span class="C2_ex_label_end">[mainly AM, INFORMAL]</span></span></div>
期望的结果
<div class="C2_word_form"><span>also <span class="C2_word_form_word">twenty-four seven</span></span></div><div class="C2_explanation_box"><span class="C2_explanation_label">[ADV: ADV after v]</span><span class="C2_explanation_content">If something happens <span class="C2_inline_word">24-7</span>, it happens all the time without ever stopping. <span class="C2_inline_word">24-7</span> means twenty-four hours a day, seven days a week.<span class="C2_ex_label_end">[mainly AM, INFORMAL]</span></span></div> |
|