in reply to regex help needed
Here's a two step approach to accomplish the task.
Change your if statement to be:
if ((/Exception/i) && !(/Exception Handler/i)) { print "FOUND : $_\n"; }
Might not be elegant, but it gets the job done. If you prefer to use a singe regex, I'd probably go with what Eliya posted.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex help needed
by locked_user sundialsvc4 (Abbot) on Mar 28, 2011 at 19:30 UTC |