I want to replace the &
from the url which come after ?
i.e query string.
Example
http://stackoverflow.com&/questions/ask?a=abcd&b=bcd&-------->1
Suppose there is a Url as 1
Now I want to replace the amp;
with ""
http://stackoverflow.com&/questions/ask?a=abcd&b=bcd&-------->2
I have tried this regex as
\?(.*?&(amp;).*?){1,} for using Regex.Replace(......);
I want to replace group[2] with "". How to do that??????????