import java.util.*;
import java.lang.*;
import java.util.regex.*;
class Main
{
{
StringBuilder sb = new StringBuilder();
sb.append("This works with StringBuffers");
Pattern p = Pattern.compile("\\Buffer\\B");
Matcher m = p.matcher(sb);
System.
out.
println(m.
replaceAll("uilder")); }
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CgppbXBvcnQgamF2YS51dGlsLnJlZ2V4Lio7CgpjbGFzcyBNYWluCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVN0cmluZ0J1aWxkZXIgc2IgPSBuZXcgU3RyaW5nQnVpbGRlcigpOwogICAgICAgIHNiLmFwcGVuZCgiVGhpcyB3b3JrcyB3aXRoIFN0cmluZ0J1ZmZlcnMiKTsKICAgICAgICBQYXR0ZXJuIHAgPSBQYXR0ZXJuLmNvbXBpbGUoIlxcQnVmZmVyXFxCIik7CiAgICAgICAgTWF0Y2hlciBtID0gcC5tYXRjaGVyKHNiKTsKICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4obS5yZXBsYWNlQWxsKCJ1aWxkZXIiKSk7Cgl9Cn0=