RE: [PHP] Regular Expression

From: Date: Tue, 01 Jul 2003 14:06:41 +0000
Subject: RE: [PHP] Regular Expression
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153556@lists.php.net to get a copy of this message
Hi, > You're only checking for valid characters at the *start* of the > string, you > need to check to the *end* of the string as well: > > "^[A-Za-z0-9 #-]{1,20}$" > > ought to do it. It sure did do it. Thank you! I didn't realize that the $ did that. Thanks for the info. -Dan Joseph

« previous php.general (#153556) next »