in reply to Re: Pattern matching
in thread Pattern matching

Thanks. That works perfectly.
I've never used grep (I've always made do with simpe matching).
This will make me learn it.

Thanks again.

Replies are listed 'Best First'.
Re: Re: Re: Pattern matching
by Fletch (Bishop) on Mar 26, 2002 at 02:08 UTC

    You're missing the point. It's not that he's using grep, but that he's anchored the match with a $ at the end of the regexp that's important. You were matching more than you thought you should be because you hadn't specified that the regexp had to match the entire string.