TextPipe bug in Replace Exact when Find = \rc

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

DFH
Posts: 636
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

TextPipe bug in Replace Exact when Find = \rc

Postby DFH » Wed Apr 02, 2008 6:14 am

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: 2138
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Postby DataMystic Support » Fri Apr 04, 2008 4:23 pm

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.
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

DFH
Posts: 636
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

How do I search for Exact Find \rc ?

Postby DFH » Fri Apr 04, 2008 5:30 pm

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: 2138
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Postby DataMystic Support » Fri Apr 04, 2008 6:57 pm

Just

Code: Select all

\\rc
will do it
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 3 guests