Created
July 25, 2014 11:08
-
-
Save lmartins/a75d71b0cf787870ce9d to your computer and use it in GitHub Desktop.
Extract the number at the end of a string
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 re = /[a-zA-Z]+([0-9]+)/; | |
| var result = re.exec("portsConfiguration23"); | |
| console.log(result[1]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment