I have a query string that could be:
/fr/hello?language=en
or
/fr/welcome?param1=222¶m2=aloa&language=en
or
/it/welcome?param1=222&language=en¶m2=aa
I would like to remove from each query string the parameter language with its value, therefore the results would be:
/fr/hello
and
/fr/welcome?param1=222¶m2=aloa
and
/it/welcome?param1=222¶m2=aa
EDIT: The length of the value of the parameter could be more than 2
Does anybody know any good regex expression to use in String.replaceAll([regex],[replace]) ?