Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to remove new lines in sublime text using regex

I have a text/csv file that looks like this:

enter image description here

I wanted to remove all the blank new lines. How can I do so? I tried using regex with matching \n, but then this would merge all the lines into one line.

like image 607
adit Avatar asked Jun 24 '15 01:06

adit


1 Answers

Press ctrl + shift + f

enter image description here

and Replace "\n\n" to "\n" enter image description here

like image 158
han058 Avatar answered Oct 14 '22 18:10

han058