Re: regular exp if help

From: Date: Wed, 23 Aug 2000 21:49:15 +0000
Subject: Re: regular exp if help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13233@lists.php.net to get a copy of this message
At 04:38 PM 8/23/2000 -0500, Chris Murley wrote:
Dooh, still not working, this gives me a syntax error, and i cant seem to see why if (!ereg("^[[:alnum:]]+$", $Username)) {
    exit;
}
Hi Chris, I'm no regexp freak, but maybe it's because of your dollar sign without being escaped on that string ? Try : if (!ereg("^[[:alnum:]]+\$", $Username)) { exit; } I hope that helps, Joao -- Joao Prado Maia Web Developer Kefta.com, Inc

« previous php.general (#13233) next »