Page 1 of 1

Pattern Matching Question

Posted: Mon May 31, 2004 3:42 pm
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,

Posted: Tue Jun 01, 2004 12:07 pm
by DataMystic Support
Why do you have a '+' on its own?

Try

ENTER\(.*\);