eregi help please

From: Date: Tue, 17 Oct 2000 15:55:55 +0000
Subject: eregi help please
Groups: php.general 
Request: Send a blank email to php-general+get-20654@lists.php.net to get a copy of this message
Could some kind soul please help me with eregi? I need something that will return true if $string doesn't contain anything other than a-z or 0-9 or . or a space. The best thing I have been able to come up with is if (eregi("([a-z]|[0-9]|[.]|[[:space:]])+", $string) { echo "$string is okay"; } else { echo "$string is wrong, you fool!!!"; } That doesn't work quite right, though. Could you please help me with it? Thank you so much!

« previous php.general (#20654) next »