Replace with Linebreak

General discussions about Advanced Find and Replace
Post Reply
wastedthelight
Posts: 1
Joined: Sun Oct 19, 2008 1:15 am

Replace with Linebreak

Post by wastedthelight »

Is there a way to insert/replace text with a linebreak (enter)?

Simply hitting enter and leaving it empty doesn't do anything unless text is in there.


---example 1---


---------------
doesn't work but

---example 2-----
hi

line

break
------------------
doesn't work

Thanks.

shamy
Posts: 3
Joined: Tue Oct 14, 2008 6:14 pm

Re: Replace with Linebreak

Post by shamy »

Use "Batch replace" and check the "Use Regular Expressions".
Then
put the text to repalce in the "Search for"
and put \r\n in the "Replace with"
And you will get a line break

Abacre
Site Admin
Posts: 1223
Joined: Mon Jan 31, 2005 5:32 pm

Re: Replace with Linebreak

Post by Abacre »

If you are using Replace operation that you may simply go to menu Action - Options - Replace
and uncheck "Delete trailing CRLFs" option.
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

Post Reply