Last active
May 24, 2016 21:58
-
-
Save ecotg/f705e00c2b5cbfe605dc6ca23d063ea9 to your computer and use it in GitHub Desktop.
Quick code tips - Javascript edition
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
// Find all occurences | |
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36'.match(/\((.*?)\)/g) | |
[ '(Macintosh; Intel Mac OS X 10_7_5)', '(KHTML, like Gecko)' ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment