paragraph returns

General discussions about Advanced Find and Replace
Post Reply
krikarian
Posts: 3
Joined: Wed Aug 31, 2005 6:21 pm
Location: Los Angeles

paragraph returns

Post by krikarian »

I having trouble with the program recognizing paragraph returns in a text file. i've tried several variations, none are working. The string below is where the problem is taking place:

@NewCourse:New Course^p@Title:

The "^p" being what word spits out.

I've also tried this:

@NewCourse:New Course\x0d@Title"

using the regular expressions code for carriage return.

thanks all for any help.

krik

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

Post by Abacre »

Hi Kirk,

It's not quite clear what you need to do.
But we may help anyway:

for example you have the source text:
@NewCourse:New Course^p@Title:

and you define the paragraph returns as ^p.

further suppose that your task is to replace ^p
by AAA

if you use
search for:
^p

it will not work. Because ^ is a reversed char (start of line).
What you need to use is
search for:
\^p

and you put needed text into
Replace with:
AAA

So: by using \ you make reserved char escaping (^ in our case).
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

krikarian
Posts: 3
Joined: Wed Aug 31, 2005 6:21 pm
Location: Los Angeles

paragraph returns

Post by krikarian »

thanks for your response.

i added the backslash, but alas, it doesn't seem to recognize the string.

krik

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

Post by Abacre »

"Use regular expressions" should be ON.
BTW we are talking about Batch replace operation here.
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

krikarian
Posts: 3
Joined: Wed Aug 31, 2005 6:21 pm
Location: Los Angeles

paragraph returns

Post by krikarian »

morning.

yes, it is for batch replace.

I now have regular expressions check. but i'm still not having any luck.

here are the strings i've tried in the find field:

Course:New Course\x0d@Title

which has the code for carriage return

Course:New Course\^p@Title

which is the Word paragraph code.

thanks again.

krik[/list]

Post Reply