Posted by Sergei Shelukhin on 06/10/07 12:36
Hi.
I need to handle warnings in incorrect regular expressions executed
using preg_match.
Warnings shouldn't appear, instead I want to output some generic
message like: "Bad regex: $regex" and also do a database change.
I tried using try-catch but warnings are not caught.
What do I do?
[Back to original message]
|