regexps

From: Date: Wed, 08 Aug 2001 20:42:33 +0000
Subject: regexps
Groups: php.general 
Request: Send a blank email to php-general+get-61906@lists.php.net to get a copy of this message
i need to find out if a string (user imputed) conatins numbers. I want only a-zA-Z to be in a field. (their name for example....and city)...i have the following however my regexps are VERY weak as i am a beginner. function validatetext($text){ if (is_string($text)== 1){ return "good"; }else{ return "bad"; } } ~kurth

« previous php.general (#61906) next »