Created
March 9, 2014 13:18
-
-
Save pavelbinar/9447630 to your computer and use it in GitHub Desktop.
Removes all non digit characters. Source: http://stackoverflow.com/questions/1862130/strip-non-numeric-characters-from-string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myString = myString.replace(/\D/g,''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment