Pattern Matching Question

Get help with installation and running here.

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

Post Reply
BHeckle

Pattern Matching Question

Post by BHeckle »

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

Post by DataMystic Support »

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

Try

ENTER\(.*\);
Post Reply