Cannot seem to get a regex to check a string for the following

        space tab ' " ! @ # $ % ^ & * ( ) + = : ; / \

if(preg_match('[\'" ,!@#$%\^&*()+=:;/\\]',$mystring))

simply need a true if it contains any of these characters (for cleaning up
usernames).  thinking it may be easier to parse for only allowed characters.

don't use regex often enough to be profficient, assistance is appreciated

Dave VanAuken
Nexus Internet Solutions, Inc.
664 Grandview Drive
Oshawa, ON  L1H 8J3
P: 905.725.9038
F: 905.261.4254
M: 905.261.4252

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