Created
January 4, 2017 12:13
-
-
Save adenhertog/a7a32503c54e234ad54fc87c7e9f1075 to your computer and use it in GitHub Desktop.
javascript match regex
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
"gets the last word in the string".match(/\w+$/)[0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment