>I want to end up with
>
>  A-Za-z0-9_-
>
>(letters, numbers, underscore and dash).
>
>If there isn't a handy character class waiting for me, what must I do to
>get those chars replaced?

        $out = preg_replace('/\W+/', '', $in);

---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca            http://mike.teczno.com/contact.html

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

Reply via email to