New Line

General discussions about Advanced Find and Replace
Post Reply
anmldr
Posts: 19
Joined: Mon Jan 31, 2005 5:32 pm

New Line

Post by anmldr »

I would like to replace all ", " with a new line in a text document. That is a comma and space. I have tried to put the ", " in the search area and in the replace area hit the "Enter" button to place the cursor on a new line. When I execute, it only removes or deletes the ", " and does not move the following data to a new line.

Is there a different way to do this?

TIA,
Linda

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

Post by Abacre »

Hi,

Yes, there are possible ways of doing it.

You used Replace tab. Why it did not work?
By default the option "remove trailing spaces" in switched on in
Options window for Replace.

So you may set the option off.

Another way: go to Batch replace tab
check on "Use regular expressions"

put into:
Search for:
,

(comma with space)

and into Replace with:
\r\n

In this case \r\n - means new line.
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

anmldr
Posts: 19
Joined: Mon Jan 31, 2005 5:32 pm

Post by anmldr »

Thank you Roman :)
As usual your support is great.

Linda

Post Reply