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?
did you try $output = ereg_replace('[^[:alnum:]]', '', $string); ?
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php