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 » Wed Aug 31, 2005 8:31 pm

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: 1201
Joined: Mon Jan 31, 2005 5:32 pm
Contact:

Post by Abacre » Wed Aug 31, 2005 9:21 pm

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 » Wed Aug 31, 2005 10:59 pm

thanks for your response.

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

krik

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

Post by Abacre » Thu Sep 01, 2005 8:21 am

"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 » Thu Sep 01, 2005 3:39 pm

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

Who is online

Users browsing this forum: No registered users and 2 guests