Consider a non-DOM scenario where you\'d want to remove all non-numeric characters from a string using JavaScript/ECMAScript. Any characters that are in range 0 - 9
0 - 9
Something along the lines of:
yourString = yourString.replace ( /[^0-9]/g, '' );