eregi() problem

From: Date: Mon, 22 Apr 2002 00:04:04 +0000
Subject: eregi() problem
Groups: php.general 
Request: Send a blank email to php-general+get-93922@lists.php.net to get a copy of this message
if (!eregi("^[[:alpha:]]$", $HTTP_POST_VARS["vpis_ime"])) echo "wrong char"; why does this always return "wrong char" no matter what value is in vpis_ime ... i tried "blah", "242234" "bla242h" .. every single time i get "wrong char". im using PHP 4.1.2 basicly is what i want is to check string if it contains only charaters from a to z and chars _ - [ ] . Can somebody write me a working function ? thx in advance

« previous php.general (#93922) next »