0

Given the result of a regex match to extract an array of query string values resulting in this:

["?firstkey=55555", "&secondKey=Words%That%MayBeEscaped", "&thirdKey=http%3A%2F%2Fs7d9.scene7.com%2Fis%2Fimag…x130%3Fwid%3D322%26layer%3Dcomp%26resMode%3Dsharp"]

What is the proper regex combo to pass into a forEach loop that will create an object of the type:

{firstKey: "55555", secondKey: "Words%That%MayBeEscaped", thirdkey: "http%3A%2F%2Fs7d9.scene7.com%2Fis%2Fimag…x130%3Fwid%3D322%26layer%3Dcomp%26resMode%3Dsharp"}

2
  • Please have a look at this SO question. Commented Mar 11, 2015 at 20:33
  • Thank you @AWolf! That second, underrated answer solved it, and gets my vote as much cleaner: stackoverflow.com/questions/8486099/… Commented Mar 11, 2015 at 22:22

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.