Last active
July 4, 2017 18:55
-
-
Save zmts/cd2b0da919db3ae5dcd6d90141b0be4a to your computer and use it in GitHub Desktop.
regexp, regular expression, leave only numbers and point (Numbers decimal)
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
' so me_shit_&$^%*5-_5.55'.replace(/[^0-9.]/g, '') | |
// >> 55.55 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment