Normalizer { public static String normalizeIdentifier(String identifier) { if (identifier == null) { return null; } identifier = identifier.replaceAll("[ ]", "_"); return identifier.replaceAll( "[^\\p{L}\\p{Nl}\\p{Nd}\\p{Mn}\\p{Mc}\\p{Pc}\\p{Cf}]", ""); }  static String normalizeIdentifier(String identifier);  }
@Test public void testNormalizeIdentifier() { String identifier = Normalizer.normalizeIdentifier( "Aaa Ááá Üüü B'bb (Ccc) Ñññ d_d _[]+-./&ªº!|\"·$=?¿¡`^*¨´Ç};:-"); Assert.assertEquals("Aaa_Ááá_Üüü_Bbb_Ccc_Ñññ_d_d__ªºÇ", identifier); }