Created
June 27, 2014 18:21
-
-
Save igorcosta/8a7e3e9ff4e7e6ea088d to your computer and use it in GitHub Desktop.
Removing all chars from a masked input and considering only numbers
This file contains hidden or 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
| var str = value.replace(/[^0-9]+/g,''); | |
| return str; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment