Created
July 10, 2014 04:59
-
-
Save fredchu/f9c6fe45ae16ec74bce2 to your computer and use it in GitHub Desktop.
Regex for match key and value in url query 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 regex = /index=([^&]*)/; | |
| // replace "index" with any query string key name you want |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment