sublime 正則匹配

sublime 支持正則匹配,開啓辦法如下:

https://jingyan.baidu.com/article/25648fc19685859191fd00b8.html
  1. 點擊按鈕 【.*】
  2. 輸入正則表達式
  3. 點擊 【in selection】 按鈕 , find 旁邊的按鍵。

常用正則

HTML 轉 MD 相關:

1 寬度屬性

width:\d*px;

2 標籤<th

\s*<th style="">
替換 | 

3 標籤

\s*<tr>\s*<td style="">
替換 | 

4 標籤

\s*<td style="">
替換 | 

2,3,4 合併

\s*<th style="">|\s*<tr>\s*<td style="">|\s*<td style="">

5 標籤

</td>\s*</tr>
替換 \n
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章