Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
-- In the output FileName --
MyRoutine.replaceFileName(((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")),((String)globalMap.get("tFileList_1_CURRENT_FILE")))
-- My Routine --
public class MyRoutine{
public static String replaceFileName(String path, String fileName) {
return path.replaceAll(fileName,replaceWhitespaceByUnderscore(fileName));
}
public static String replaceWhitespaceByUnderscore(String fileName) {
return fileName.replaceAll(" ","_");
}
}
But is there an easier or more stylish way to do it ?