Pattern Matching Question

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

BHeckle

Pattern Matching Question

Postby BHeckle » Mon May 31, 2004 3:42 pm

I am trying to match lines with the following phrase
ENTER(NAME);
where NAME is an arbitray text string.

I tried the following patterns and only got the last one to match. I am confused as to the why.

ENTER\(+\);
ENTER\(+\)\;
ENTER\(+\)+
ENTER\(+\)*

Thanks,

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

Postby DataMystic Support » Tue Jun 01, 2004 12:07 pm

Why do you have a '+' on its own?

Try

ENTER\(.*\);
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