RE: [PHP] validating directory and file name with preg_match

2009-01-28 Thread Boyd, Todd M.
> -Original Message- > From: Frank Stanovcak [mailto:blindspot...@comcast.net] > Sent: Wednesday, January 28, 2009 11:08 AM > To: php-general@lists.php.net > Subject: [PHP] validating directory and file name with preg_match > > I'm limiting access to certain pro

[PHP] validating directory and file name with preg_match

2009-01-28 Thread Frank Stanovcak
I'm limiting access to certain proceedures based on the file trying to use them, and the directory they are located in on my server. Right now I am using two preg_match statments as you will see. What I want to know is this. Is there a way to write a single regex for this that will supply the