TextPipe bug in Replace Exact when Find = \rc

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
dfhtextpipe
Posts: 986
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

TextPipe bug in Replace Exact when Find = \rc

Post 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.
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post 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.
dfhtextpipe
Posts: 986
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

How do I search for Exact Find \rc ?

Post 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
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post by DataMystic Support »

Just

Code: Select all

\\rc
will do it
Post Reply