title: Java regex to replace file path based on OS
body: <p>I'm not very sure there is any regex to replace thoese things:</p>
  
  <p>This is a string value read from a xml file saved through Linux machine</p>
  
  <pre><code>&lt;pcs:message schema="models/HL7_2.5.model"/&gt;
  </code></pre>
  
  <p>and this is the one saved in Windows machine</p>
  
  <pre><code>&lt;pcs:message schema="model\HL7_2.5.model"/&gt;
  </code></pre>
  
  <p>This is why the file getting an error in eclipse while exported in Linux and imported in Windows or vise versa.</p>
  
  <p>Is there any regex to find and replace the value(slash and back slash) within String? (not XML parsing) based on working OS?</p>
  
  <p>Thanks in advance</p>