preg_replace("/[^a-z0-9]/i", '', $str);

R.S. Herhuth wrote:
> I'm really struggling trying to grasp the concept of reg ex rfeplacement.
> 
> I have been through the documentation and a few tutorials but I can't
> find something that shows me exactly how to return a string that
> contains nothing but alpha numeric characters, while stripping out all
> other characters.
> 
> Couls someone please show me how to do this?
> 
> Thanks,
> Ron


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to