Created
August 6, 2016 21:08
-
-
Save codecakes/b0d4c2b8decd7a678a836d69c64291b6 to your computer and use it in GitHub Desktop.
Simple Url Parameter extraction from DOM
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
"use strict"; | |
let paramRegex = /([a-zA-Z0-9]+\=[a-zA-Z0-9]+)/ig; | |
location.search.match(paramRegex); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment