private static final void dumpString(final String input) {
System.out.printf("Dumping '%s'\n", input);
for (char c : input.toCharArray()) {
System.out.printf(" Char '%c' is %d\n", c, (int)c);
}
}
public static void main (String[] args) throws java.lang.Exception
{
String s = "äÄöÖüÜß";
String p = "[ÄÖÜäöüß]";
String r = s.replaceAll(p, "");
System.out.printf("In '%s' replace '%s' and get '%s' (%s)\n", s, p, r, System.getProperty("java.version"));
dumpString(s);