Let's say I had a text file with the following nine lines:
foo bar baz qux quux
How can I use Sublime Text 2 to remove all four of the blank/empty lines, leaving only five lines?
Select the text
Press:
Make sure you have selected 'regular expression' by pressing:
Find what: ^ or ^( | ?)
^
^( | ?)
Replace With: (nothing, leave in blank).
1.4m articles
1.4m replys
5 comments
57.0k users