In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Dave) wrote:

> Am partially successfull after taking a further look into things.  the 
> following
> (while ugnly) correctly catches everything except the \ character for some
> reason.  ideas?
> 
> if(preg_match("/['".'" ,!@#$%\^&*()+=\/\\:;?|]/',$MyString)){
>       # echo error, character found
> }

Try four backslashes instead of two:

preg_match("/['".'" ,!@#$%\^&*()+=\/\\\\:;?|]/',$MyString)

-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to