regular exp if help

From: Date: Wed, 23 Aug 2000 19:52:08 +0000
Subject: regular exp if help
Groups: php.general 
Request: Send a blank email to php-general+get-13206@lists.php.net to get a copy of this message
Hi all, i have a string containing my name $string = "chris"; I want to check $string to see if contains any characters other that 0-9a-zA-Z and if it does, exit. I'm not too good with php reg exps, can someone post some example code? Thanks Chris

« previous php.general (#13206) next »