If you are trying to remove an entire class of characters, such as all alpha characters.
ereg_replace("[[:alpha:]]","","$string")
Here's a good one to strip all non-numeric characters. I use this for cleaning up dial strings before faxing.
ereg_replace("[[:digit:]]","","$dial_string")
I can't speak for the performance of ereg_replace when using character classes.