I am trying to select just what comes after name= and before the & in :
"/pages/new?name=J&return_url=/page/new"
So far I have..
^name=(.*?).
I am trying to return in this case, just the J, but its dynamic so it could very several characters, letters, or numbers.
The end case situation would be allowing myself to do a replace statement on this dynamic variable found by regex.
/name=([^&]*)/^and end with an&Example:
The better way is to break all the params down (Example using current address):
Update
Though still not supported in any version of IE, URLSearchParams provides a native way of retrieving values for other browsers.