Possible Duplicate:
PHP remove special character from string
I want to find a regex in this way:
I have the body of a SMS message in a $sms variable. I would be have as result a string with:
- parenthesis
- the non alphanumeric character )([]#@*^?!|"&% and remove the other that remain
- all alphanumeric character and numeric
this because I have some problem with my sms gateway machine that it not deliver the message with this character ° frequently used in Italy language to enumerate numbers.
I need to use PHP to do this, but only the regex can be a great help.