Home Download Buy Blog Forum Support

how to delete new lines?

how to delete new lines?

Postby beigetwin on Sat Feb 11, 2012 6:36 pm

I tried replace "$" with "" but no luck.
beigetwin
 
Posts: 5
Joined: Mon Dec 05, 2011 7:08 pm

Re: how to delete new lines?

Postby vitaLee on Sat Feb 11, 2012 7:13 pm

if you need to remove blank lines with regex, find "^\s+$" and replace with ""
vitaLee
 
Posts: 150
Joined: Tue Dec 27, 2011 11:10 pm

Re: how to delete new lines?

Postby beigetwin on Sat Feb 11, 2012 8:20 pm

I have text:

a
b
c

When I try as you wrote, it says: Unable to find ^\s+$
beigetwin
 
Posts: 5
Joined: Mon Dec 05, 2011 7:08 pm

Re: how to delete new lines?

Postby C0D312 on Sat Feb 11, 2012 8:33 pm

Find: \n
Replace: [EMPTY]
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: how to delete new lines?

Postby beigetwin on Sat Feb 11, 2012 8:52 pm

works. thanks!
beigetwin
 
Posts: 5
Joined: Mon Dec 05, 2011 7:08 pm

Re: how to delete new lines?

Postby vitaLee on Sat Feb 11, 2012 8:57 pm

@beigetwin you need to enable Regex find option by clicking the [.*] button in the find menu or [opt+cmd+r]/[alt+cltr+r]
vitaLee
 
Posts: 150
Joined: Tue Dec 27, 2011 11:10 pm


Return to General Discussion

Who is online

Users browsing this forum: jfcherng and 23 guests