TA的每日心情 | 擦汗 2020-7-3 13:51 |
---|
签到天数: 19 天 [LV.4]偶尔看看III
状元
  
- 积分
- 10032
|
请教一个正则表达式问题
想对MDX每个非跳转词头的内容加上一对div标签包裹住。
如:
原</>
article
<link rel="stylesheet" type="text/css" href="naec.css"/>
<a href="entry://0123">上一页</a> article (<a href="entry://0124">0124</a>) <a href="entry://0125">下一页</a>
<img class="left" src="0124.png"><img class="right" src="0124_2.png">
<a href="entry://0123">上一页</a> article (<a href="entry://0124">0124</a>) <a href="entry://0125">下一页</a>
转换后变成:
</>
article
<div id="mydict">
<link rel="stylesheet" type="text/css" href="naec.css"/>
<a href="entry://0123">上一页</a> article (<a href="entry://0124">0124</a>) <a href="entry://0125">下一页</a>
<img class="left" src="0124.png"><img class="right" src="0124_2.png">
<a href="entry://0123">上一页</a> article (<a href="entry://0124">0124</a>) <a href="entry://0125">下一页</a>
</div>
对于这种词头则不处理
</>
美国50州简况表
@@@LINK=2764
|
|