View Single Post
Old 02-11-2015, 01:40 PM   #13
Deina97
Member
Deina97 began at the beginning.
 
Deina97's Avatar
 
Posts: 17
Karma: 10
Join Date: Nov 2014
Device: Samsung Note
I search for (spacebar)(spacebar)+ in Regex

You could also use (spacebar){2,} ( (spacebar) means tap the space bar, don't type the word in! )

Either way means you are looking for two or more spaces.

***

Another Regex that I use all the time (usually just before the one above) is
Search: \n
replace: (spacebar)

That removes ALL line feeds & replaces them with spaces.

After I've done the two operations above, I Beautify all files, which puts in only the necessary line feeds.
Deina97 is offline   Reply With Quote