> thinking it may be easier to parse for only allowed characters.

*much* better idea. Try:

preg_match('/[^\w]/', $string)

to find all non-alphanumeric+underscore



-- 
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