sublime 支持正則匹配,開啓辦法如下:
https://jingyan.baidu.com/article/25648fc19685859191fd00b8.html
- 點擊按鈕 【.*】
- 輸入正則表達式
- 點擊 【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