I\'m not very sure there is any regex to replace thoese things:
This is a string value read from a xml file saved through Linux machine
This should take care of fixing slashes:
String str = xml.replaceAll("\\\\|/", System.getProperty("file.separator"));