Assistance required with a regex - 22/11/08 04:47 AM
Hi,
I just have a simple question, what would the regex match be to remove all non alphanumbers (.'s _'s -'s ()'s etc.) from a string, i believe this is something easily done via regex, however as im not familiar with it im having trouble. I know the script will be like this:
I just dont know what should be where "Regxmatch" is.
Any Assitance would be greatly appreciated.
Thankyou.
I just have a simple question, what would the regex match be to remove all non alphanumbers (.'s _'s -'s ()'s etc.) from a string, i believe this is something easily done via regex, however as im not familiar with it im having trouble. I know the script will be like this:
Code:
if ($regex($1,regexmatch)) { return $regml(1) }
I just dont know what should be where "Regxmatch" is.
Any Assitance would be greatly appreciated.
Thankyou.