fork download
  1. import java.io.File;
  2.  
  3. class Main {
  4. public static void main (String[] args) throws java.lang.Exception {
  5. String str = "<pcs:message schema=\"model\\HL7_2.5.model\"/>";
  6. System.out.printf("Converted xml is: %s%n", str.replaceAll("\\\\|/", File.separator));
  7. }
  8. }
Success #stdin #stdout 0.03s 245632KB
stdin
Standard input is empty
stdout
Converted xml is: <pcs:message schema="model/HL7_2.5.model"/>