title: How can I replace \ with / in Java?
body: <p>I tried with following regex, but it didn't work.</p>
  
  <blockquote>
    <p>myString.replaceAll("\", "/");</p>
  </blockquote>
  
  <p>Exception:</p>
  
  <blockquote>
    <p>java.util.regex.PatternSyntaxException:
    Unexpected internal error near index 1
    \  ^  at
    java.util.regex.Pattern.error(Unknown
    Source)   at
    java.util.regex.Pattern.compile(Unknown
    Source)   at
    java.util.regex.Pattern.(Unknown
    Source)   at
    java.util.regex.Pattern.compile(Unknown
    Source)   at
    java.lang.String.replaceAll(Unknown
    Source)</p>
  </blockquote>