Simple regexp

From: Date: Fri, 30 Aug 2002 05:19:56 +0000
Subject: Simple regexp
Groups: php.general 
Request: Send a blank email to php-general+get-114597@lists.php.net to get a copy of this message
Hi, I'm trying to do a simple regexp to validate if a whole string only contains the numbers 0 to 9, Letters a - f and A - F and the character : Why isn't ereg("[a-zA-Z0-9:]",$string) working? Guidance appreciated. -------------- Adam Alkins http://www.rasadam.com --------------

« previous php.general (#114597) next »