Here you can find the source of filePathReplaceAll(String value)
public static String filePathReplaceAll(String value)
//package com.java2s; //License from project: Apache License public class Main { public static String filePathReplaceAll(String value) { String returnValue = value; if (returnValue == null || returnValue.trim().equals("")) { return ""; }// w w w . ja v a 2 s.co m returnValue = returnValue.replaceAll("/", ""); returnValue = returnValue.replaceAll("\\", ""); returnValue = returnValue.replaceAll("\\.\\.", ""); // .. returnValue = returnValue.replaceAll("&", ""); return returnValue; } }