@Test public void testRemoveUnsupportedChars() { assertEquals("a1_bb.cc", FileName.removeUnsupportedChars("a1:bb.cc")); assertEquals("a2_bb.cc", FileName.removeUnsupportedChars("a2/bb.cc")); assertEquals("a3_bb.cc", FileName.removeUnsupportedChars("a3\\bb.cc")); assertEquals("a4. ,[](){}bb.cc", FileName.removeUnsupportedChars("a4. ,[](){}bb.cc")); assertEquals("a5_bb_cc.dd__ee", FileName.removeUnsupportedChars("a5/bb\\cc.dd/:ee")); }
public static String removeUnsupportedChars(String path) { return path.replaceAll("[^0-9a-zA-Z\\-_\\. ,\\[\\]\\(\\)\\{\\}]", "_"); }
FileName { public static String removeUnsupportedChars(String path) { return path.replaceAll("[^0-9a-zA-Z\\-_\\. ,\\[\\]\\(\\)\\{\\}]", "_"); } }
FileName { public static String removeUnsupportedChars(String path) { return path.replaceAll("[^0-9a-zA-Z\\-_\\. ,\\[\\]\\(\\)\\{\\}]", "_"); }  }
FileName { public static String removeUnsupportedChars(String path) { return path.replaceAll("[^0-9a-zA-Z\\-_\\. ,\\[\\]\\(\\)\\{\\}]", "_"); }  static String getBasename(String path); static String removeUnsupportedChars(String path); }
FileName { public static String removeUnsupportedChars(String path) { return path.replaceAll("[^0-9a-zA-Z\\-_\\. ,\\[\\]\\(\\)\\{\\}]", "_"); }  static String getBasename(String path); static String removeUnsupportedChars(String path);  }