I am looking for a snippet in java that replaces the

```
 "..", "/" or "\" or ":" - FileSeperator characters with
 "" 

```

in a fileName property passed from UI. This should be OS independent. 
Also I dont want to remove the "single dot", only "two dots"

Currently i wrote a snippet

```
private static void filter(){
    // should not remove the Single Dot
    String fileName = "/user/../142552/ReportFile.txt"      
    fileName = fileName.replaceAll("[/|\\|..|:|]","");
    System.out.println("fileName " + fileName); 
}

```

Output

```
fileName user142552ReportFiletxt

```

Expected Output

```
fileName user142552ReportFile.txt

```