Possible Duplicate:
stripping out all characters from a string, leaving numbers
I have something produced by an API that looks like: 34 Canadian Dollars. I’m trying to get rid of the alphabetical characters and keep only the numeric characters. How can I do that?
Given the fact that you’re working with currencies and that the number may contain a comma or decimal point, you should use this instead: