View Single Post
Old 05-04-2008, 07:05 PM   #1 (permalink)
Aaron
The Frequenter
 
Join Date: Dec 2007
Location: In my basement
Posts: 386
Thanks: 47
Aaron is on a distinguished road
Default Evaluate my regex pleeze?

Hey, this should be an ongoing thread for people to validate others' Regex. I mean, without valid Regex, you could have a security hole. And with a security hole comes your customers' credit card numbers in your neighbors hands...

Anyway, does this work the way I want it to?
PHP Code:
$regex '^[^\s"\']{4,50}$'
It should accept any string of characters 4 to 50 characters long. The string cannot have any spaces or tabs or anything of the like, and cannot have quotation marks.
__________________
Signatures are nothing but incriminating.
Send a message via MSN to Aaron
Aaron is offline  
Reply With Quote