Page 1 of 1

TextPipe bug in Replace Exact when Find = \rc

Posted: Wed Apr 02, 2008 6:14 am
by dfhtextpipe
When the Find pattern is

Code: Select all

\rc
and the Find type is Exact, then TextPipe v8.0.9 treats the backslash as if it were part of a Perl pattern, so it does not find the pattern.

I think this is a critical bug.

TextPipe is using \r\n to display and list [CR][LF] even in Exact filters.
It would seem that instead of restricting this representation to how it displays the pattern, it is also doing this for how it uses the pattern.
Hence the following pattern

Code: Select all

abc\rdef
is in effect being treated as if it were

Code: Select all

abc
def
which is inherently wrong.

Posted: Fri Apr 04, 2008 4:23 pm
by DataMystic Support
No, it's not wrong. How else could you represent escape characters such as \x00 without this facility?

It operates the same as for the other search/replace types, but it does not allow patterns.

How do I search for Exact Find \rc ?

Posted: Fri Apr 04, 2008 5:30 pm
by dfhtextpipe
Dear Simon,

What is the correct way to do an Exact Find for the string

Code: Select all

\rc
where \r does NOT represent a [CR] ? This \rc is part of Standard Format Markup, used by Bible translators.

Everyting I tried with Find type=Exact was unsuccessful. I had to resort to using a Perl pattern instead.

Best regards,
David Haslam

Posted: Fri Apr 04, 2008 6:57 pm
by DataMystic Support
Just

Code: Select all

\\rc
will do it