[thelist] How to tell if a regular expression is valid?

Jason Lustig jasonlustig at adelphia.net
Wed Jul 14 20:36:16 CDT 2004


> You may want to consider actually using their expression as the search
> criteria against a string.  Try/Catch any errors.  If there are any errors,
> then the expression isn't valid.

That would work, if I could try/catch in php4... php5 might have it but 
I don't have that option at this point...

Jason


More information about the thelist mailing list