Sublime Text 3中使用正则表达式删除空行
方法一
按下组合键:Ctrl+H
Find What: \n\n+
Replace With: \n
最后点击:Replace All
方法二
在Sublime Text中按下alt+H,打开搜索功能,勾选左侧的*号区域,然后在find栏中输入正则表达式 ^(\t)*$\n
在replace栏留空
,最后直接点击Replace All即可。简单又方便
方法三
CTRL+H打开replace功能,勾选上左侧的regular expression,并填写
find what栏 : s+$ (正则表达式)
replace with栏 : (这行留空)
接着点replace all即可