note 2952 deleted from function.ereg by jimw

From: Date: Fri, 02 Nov 2001 01:20:25 +0000
Subject: note 2952 deleted from function.ereg by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20112@lists.php.net to get a copy of this message
M_Martian@bigfoot.com: The following should do the trick... <pre>if(!ereg("^[_a-z-]{0,20}[:space:]$", $name) || !$name) </pre> I had a similar problem and found your post in my search for a solution. Thanks to my buddy Matt for comming up with the answer to our problem!

« previous php.notes (#20112) next »