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

Joshua Olson joshua at waetech.com
Wed Jul 14 21:03:33 CDT 2004


> -----Original Message-----
> From: Jason Lustig
> Sent: Wednesday, July 14, 2004 9:36 PM
> 
> > 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,

Found this:

http://www.zend.com/tips/tips.php?id=162&single=1

HTH,

<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com/service_areas/
706.210.0168 



More information about the thelist mailing list