public static String replaceUnsupportedFileNameChars(String fileName, String replacement) { return fileName.replaceAll("[\\\\/:*?\"<>|]", replacement!=null?replacement:"_"); }
UseOf