At 16:21 18-3-04, you wrote:

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



Reply via email to