Gab*_*iel 5 notepad++ linebreaks
以以下为例:
This text file has many
double linebreaks, What is the expression
too find these?
Run Code Online (Sandbox Code Playgroud)
Tim*_*ffe 10
如果您使用“正则表达式”搜索模式:
(\r\n\s*$){2,}
Run Code Online (Sandbox Code Playgroud)
将找到 2 个或更多空行的所有实例,包括行上只有空格的实例。
EG 使用替换 \r\n
something
something else
another thing
Another
Another thing
Run Code Online (Sandbox Code Playgroud)
成为
something
something else
another thing
Another
Another thing
Run Code Online (Sandbox Code Playgroud)