Page 1 of 1
paragraph returns
Posted: Wed Aug 31, 2005 8:31 pm
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
Posted: Wed Aug 31, 2005 9:21 pm
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).
paragraph returns
Posted: Wed Aug 31, 2005 10:59 pm
by krikarian
thanks for your response.
i added the backslash, but alas, it doesn't seem to recognize the string.
krik
Posted: Thu Sep 01, 2005 8:21 am
by Abacre
"Use regular expressions" should be ON.
BTW we are talking about Batch replace operation here.
paragraph returns
Posted: Thu Sep 01, 2005 3:39 pm
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]