Re: Newbie pattern question

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

 



At 19:59 05-11-2004, Greg Donald wrote:
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)) {

If you use ereg, use [[:blank:]] instead of an actual space, that allows for tabs and other variants too



Rene

--
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