|
本帖最后由 qiuhao1112 于 2016-5-4 16:54 编辑
有如下代码:
<b>abandon</b>
<ex>She was <b>abandoned</b>.</ex>
<ex>She <b>abandoned</b> her <b>hope</b>.</ex>
<ex>She <b>abandoned</b> her <b>hope</b> in <b>technology</b>.</ex>
我想提取:仅<ex></ex>标签中
<b>abandoned</b>
<b>abandoned</b> her <b>hope</b>
<b>abandoned</b> her <b>hope</b> in <b>technology</b>
即仅<ex></ex>标签中第一个出现的<b>到最后一个出现的</b>为止之间的内容(包括标签)
请问怎么匹配?
|
|