import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
String s1
= "/fr/welcome?param1=222¶m2=aloa&language=en"; String s2
= "/fr/welcome?language=en"; String s3
= "/fr/welcome?param1=222&language=en¶m2=aa"; String m1
= s1.
replaceAll("[&?]language.*?(?=&|\\?|$)",
""); String m2
= s2.
replaceAll("[&?]language.*?(?=&|\\?|$)",
""); String m3
= s3.
replaceAll("[&?]language.*?(?=&|\\?|$)",
""); }
}
aW1wb3J0IGphdmEudXRpbC5yZWdleC5NYXRjaGVyOwppbXBvcnQgamF2YS51dGlsLnJlZ2V4LlBhdHRlcm47CmltcG9ydCBqYXZhLnV0aWwuKjsKaW1wb3J0IGphdmEubGFuZy4qOwppbXBvcnQgamF2YS5pby4qOwogCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewpwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KewpTdHJpbmcgczEgPSAiL2ZyL3dlbGNvbWU/cGFyYW0xPTIyMiZwYXJhbTI9YWxvYSZsYW5ndWFnZT1lbiI7ClN0cmluZyBzMiA9ICIvZnIvd2VsY29tZT9sYW5ndWFnZT1lbiI7ClN0cmluZyBzMyA9ICIvZnIvd2VsY29tZT9wYXJhbTE9MjIyJmxhbmd1YWdlPWVuJnBhcmFtMj1hYSI7ClN0cmluZyBtMSA9IHMxLnJlcGxhY2VBbGwoIlsmP11sYW5ndWFnZS4qPyg/PSZ8XFw/fCQpIiwgIiIpOwpTdHJpbmcgbTIgPSBzMi5yZXBsYWNlQWxsKCJbJj9dbGFuZ3VhZ2UuKj8oPz0mfFxcP3wkKSIsICIiKTsKU3RyaW5nIG0zID0gczMucmVwbGFjZUFsbCgiWyY/XWxhbmd1YWdlLio/KD89JnxcXD98JCkiLCAiIik7ClN5c3RlbS5vdXQucHJpbnRsbihtMSk7ClN5c3RlbS5vdXQucHJpbnRsbihtMik7ClN5c3RlbS5vdXQucHJpbnRsbihtMyk7Cn0KfQ==