Problems with Anchors

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

randersoniii
Posts: 4
Joined: Thu May 12, 2005 5:34 am

Problems with Anchors

Postby randersoniii » Fri Jun 17, 2005 7:37 am

I am trying to write a perl pattern where the entire line matches. So, for the text "This is a test", I have tried "^This is a test$". While this seems to work in other programs (RegexBuddy), I get no matches if I type the following into the trial input:
This is a Test
This is a Test 2
This is a Test

I know this should be simple, but it's not clear what I am doing wrong. I have also tried an easypattern with similar results.

User avatar
DataMystic Support
Site Admin
Posts: 2162
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Postby DataMystic Support » Fri Jun 17, 2005 3:28 pm

$ doesn't work as expected because the library we use expects Unix end of lines.

Try

"^This is a test[\r\n]

Instead.
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

randersoniii
Posts: 4
Joined: Thu May 12, 2005 5:34 am

Postby randersoniii » Sat Jun 18, 2005 1:01 am

OK, thanks...

This is one you should fix or write up in help. I lost a couple of hours assuming it was something I didn't understand.

User avatar
DataMystic Support
Site Admin
Posts: 2162
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Postby DataMystic Support » Mon Jun 20, 2005 9:59 am

I think it is documented, but I will check.
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 2 guests