RE: [PHP] Pattern Matching

From: Date: Fri, 23 May 2003 16:49:34 +0000
Subject: RE: [PHP] Pattern Matching
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148798@lists.php.net to get a copy of this message
Daniel, > Im using the ereg() function. In perl, you just call it. There's a preg_match() function you should look at. It's perl compatible regex's... example of it's use: if (!preg_match("/[A-Za-z]/i", $first_name)) { echo "invalid."; } -Dan Joseph

« previous php.general (#148798) next »