"OneSolution" wrote:
I am trying to write a regular expression that will match all the
exceptions
generated in my application log file. I have done it as such:
\bjava\.\w+\.\w+Exception:
However, there are two exceptions that I know will occur and I
don’t care to
catch them. So I need to modify the above regular expression to
ignore the
two exceptions that will get generated.
I don’t know how to do that. Your help will be much
appreciated.
Thanks,
Z
I have a lot of problems with exception handling in regex. Perhpas I
don’t know how to do it...
So I do a pre-process, which changes the exception to something else.
Then I run my regular regex,
and then change the exceptions back to their original condition.
Tedious, but it works.
--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL:
http://www.dbForumz.com/PHP-Regex-ftopict159819.html
Visit Topic URL to contact author (reg. req'd). Report abuse:
http://www.dbForumz.com/eform.php?p=539440