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
and this is the one saved in Windows machine
This is why the file getting an error in eclipse while exported in Linux and imported in Windows or vise versa.
Is there any regex to find and replace the value(slash and back slash) within String? (not XML parsing) based on working OS?
Thanks in advance
解决方案
str = str.replaceAll("\\\\|/", "\\"+System.getProperty("file.separator"))