Hi all,

I'm sure this is blindingly simple, but could anyone tell me how to
get an ereg_replace() to return a string where all characters OTHER
than alpha-numerics have been stripped out?

I can do the reverse with:

$output = ereg_replace('[[:alnum:]]', '', $string);

Which will happily remove all alpha-numeric characters from $string!
But I want it to remove anything but.. suggestions please?

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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

Reply via email to