Regex Search Removing Lines?
I often have to copy and paste lists of file references and then remove the ones that are minimnized for instance ".min.js".
I've figured out that I can search for these lines with something like "^.*$" and even replace them with an empty string. However, I am wondering how I can easily remove the blank lines that this creates.
Thanks for any help,
请先登录再写评论。
Hi there,
1) String Manipulation plugin has special action to remove empty lines in multiline selection.
2) Execute another regex-powered replace:
From: \n{2,}
To: \n
\n\n covers only 1 empty line .. so replace will need to be exected multiple times if you have few empty lines in a row; the \n{2,} pattern will cover 1+ empty lines in one go