Re: Newbie pattern question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 5 Nov 2004 20:55:00 +0200, Phpu <phpu@xxxxx> wrote:
>   if(ereg("^[a-zA-Z0-9_]{2,30}$", $name)) {

if(ereg("^[a-zA-Z0-9_\ ]{2,30}$", $name)) {

Need to allow spaces in the regular expression.


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux