> I need to replace all NON alpha-numeric characters in a string.
>
> Example:
> input: "-What's Up Doc?"
> output: "WhatsUpDoc"
>
> I received this in a previous post, but it doesn't work:
> $str = ereg_replace("/[^[:alnum:]]/i", '', $str);Use preg_replace() with that string, not ereg_replace(). ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

