如何在UltraEdit下删除带tab符与空格的空行?

来源:互联网 发布:杰西卡兰格演技知乎 编辑:程序博客网 时间:2024/05/17 02:30

如何在UltraEdit下删除带tab符与空格的空行?


要删除带Tab与空格的空行,要使用Perl正则表达式如下:

查找: “/n/s*/r” (不含引号)

替换:“” (不含引号)

 

注:此正则表达式无法删除文章最后一行的空行。


++++++++++++++++++++++++++++++++++++++++++++++++++++++++

How can I delete blank lines with blank tabs/spaces in UltraEdit?

To delete blank lines with blank tabs/spaces, you can use a Perl-compatible regular expression replace as follows:

Replace: "/n/s*/r" (without the quotes)
With "" (without the quotes - i.e. nothing).

This should replace all blank lines with all blank spaces/tabs, except for the last line which you would need to delete manually.

原创粉丝点击