/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.regex.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
int elimiate_user_id = 11;
String pattern
= "^" + elimiate_user_id
+ ",|," + elimiate_user_id
+ "\\b"; System.
out.
println("11,22,33,44,55,111".
replaceAll(pattern,
"")); System.
out.
println("22,33,11,44,55,111".
replaceAll(pattern,
"")); System.
out.
println("22,33,44,55,111,11".
replaceAll(pattern,
"")); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnV0aWwucmVnZXguKjsKLyogTmFtZSBvZiB0aGUgY2xhc3MgaGFzIHRvIGJlICJNYWluIiBvbmx5IGlmIHRoZSBjbGFzcyBpcyBwdWJsaWMuICovCmNsYXNzIElkZW9uZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlpbnQgZWxpbWlhdGVfdXNlcl9pZCA9IDExOwoJCVN0cmluZyBwYXR0ZXJuID0gIl4iICsgZWxpbWlhdGVfdXNlcl9pZCArICIsfCwiICsgZWxpbWlhdGVfdXNlcl9pZCArICJcXGIiOwoJCVN5c3RlbS5vdXQucHJpbnRsbihwYXR0ZXJuKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4oIjExLDIyLDMzLDQ0LDU1LDExMSIucmVwbGFjZUFsbChwYXR0ZXJuLCAiIikpOyAKCQlTeXN0ZW0ub3V0LnByaW50bG4oIjIyLDMzLDExLDQ0LDU1LDExMSIucmVwbGFjZUFsbChwYXR0ZXJuLCAiIikpOyAKCQlTeXN0ZW0ub3V0LnByaW50bG4oIjIyLDMzLDQ0LDU1LDExMSwxMSIucmVwbGFjZUFsbChwYXR0ZXJuLCAiIikpOyAKCX0KfQ==
^11,|,11\b
22,33,44,55,111
22,33,44,55,111
22,33,44,55,111