Sublime Forum

How to delete new lines?

#1

I tried replace “$” with “” but no luck.

0 Likes

#2

if you need to remove blank lines with regex, find “^\s+$” and replace with “”

0 Likes

#3

I have text:

a
b
c

When I try as you wrote, it says: Unable to find ^\s+$

0 Likes

#4

Find: \n
Replace: [EMPTY]

0 Likes

#5

works. thanks!

0 Likes

#6

@beigetwin you need to enable Regex find option by clicking the .*] button in the find menu or [opt+cmd+r]/[alt+cltr+r]

0 Likes