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)


PHP General Mailing List (
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