I have a query string that I need to remove a certain parameter from. For instance, my query string may be "?name=John&page=12&mfgid=320"
, and I need to remove the "page" parameter from it and end up with "?name=John&mfgid=320"
. I cannot assume that the "page" parameter is or isn't followed by other parameters.
All my attempts at using JavaScript functions/regex are failing miserably, so I could really use a hand in getting this working. Thanks.