Re: [PHP] filter_var using regex

2011-05-05 Thread Jason Gerfen
On 05/04/2011 03:10 PM, Ashley Sheridan wrote: On Wed, 2011-05-04 at 13:46 -0600, Jason Gerfen wrote: On 05/04/2011 01:27 PM, Ashley Sheridan wrote: On Wed, 2011-05-04 at 13:20 -0600, Jason Gerfen wrote: I am running into a problem using the REGEXP option with filter_var(). The string I

Re: [PHP] filter_var using regex

2011-05-05 Thread Jason Gerfen
On 05/04/2011 03:10 PM, Ashley Sheridan wrote: On Wed, 2011-05-04 at 13:46 -0600, Jason Gerfen wrote: On 05/04/2011 01:27 PM, Ashley Sheridan wrote: On Wed, 2011-05-04 at 13:20 -0600, Jason Gerfen wrote: I am running into a problem using the REGEXP option with filter_var(). The string I

Re: [PHP] filter_var using regex

2011-05-05 Thread Ashley Sheridan
On Thu, 2011-05-05 at 13:39 -0600, Jason Gerfen wrote: On 05/04/2011 03:10 PM, Ashley Sheridan wrote: On Wed, 2011-05-04 at 13:46 -0600, Jason Gerfen wrote: On 05/04/2011 01:27 PM, Ashley Sheridan wrote: On Wed, 2011-05-04 at 13:20 -0600, Jason Gerfen wrote: I am running into a

[PHP] filter_var using regex

2011-05-04 Thread Jason Gerfen
I am running into a problem using the REGEXP option with filter_var(). The string I am using: 09VolunteerApplication.doc The PCRE regex I am using: /^[a-z0-9]\.[doc|pdf|txt|jpg|jpeg|png|docx|csv|xls]{1,4}$/Di The function in it's entirety: return (!filter_var('09VolunteerApplication.doc',

Re: [PHP] filter_var using regex

2011-05-04 Thread Ashley Sheridan
On Wed, 2011-05-04 at 13:20 -0600, Jason Gerfen wrote: I am running into a problem using the REGEXP option with filter_var(). The string I am using: 09VolunteerApplication.doc The PCRE regex I am using: /^[a-z0-9]\.[doc|pdf|txt|jpg|jpeg|png|docx|csv|xls]{1,4}$/Di The function in it's

Re: [PHP] filter_var using regex

2011-05-04 Thread Jason Gerfen
On 05/04/2011 01:27 PM, Ashley Sheridan wrote: On Wed, 2011-05-04 at 13:20 -0600, Jason Gerfen wrote: I am running into a problem using the REGEXP option with filter_var(). The string I am using: 09VolunteerApplication.doc The PCRE regex I am using:

Re: [PHP] filter_var using regex

2011-05-04 Thread Ashley Sheridan
On Wed, 2011-05-04 at 13:46 -0600, Jason Gerfen wrote: On 05/04/2011 01:27 PM, Ashley Sheridan wrote: On Wed, 2011-05-04 at 13:20 -0600, Jason Gerfen wrote: I am running into a problem using the REGEXP option with filter_var(). The string I am using: 09VolunteerApplication.doc The