I want to remove some querystring attribute from my url, I tried some regex but didn't get the exact solution for this. Please help me to out of it. eg:
String qString = "category=Popular&code=14290115";
qString = qString .replaceAll("(?<=[?&;])code=.*?($|[&;])","");
output: category=Popular&
the above regex is removing the attribute but not removing & symbol. So please suggest me for this.
caseparameter. I want this:http://www.domain.com?id=1&start=2&end=5id=1&case=edit&start=2&end=5asquery string