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.
In reply to Re: regex help needed
by dasgar
in thread regex help needed
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |