title: Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ ) in java
body: <p>I am using URL Matching with parent domain and I-Frame domain. Getting this error to put the below code inside Java Class.</p>
  
  <pre><code>out.print("ref = url.match(/:\/\/(.[^/]+)/)[1];");
  </code></pre>
  
  <p>Getting Error for this line:</p>
  
  <pre><code>Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ )
  </code></pre>
  
  <p>Original script:</p>
  
  <pre><code>    out.print("&lt;script&gt;");
  </code></pre>
  
  <p>//need to put below line inside java class, so using <code>out.print(" ");</code></p>
  
  <pre><code>ref = url.match(/:\/\/(.[^/]+)/)[1];
  out.print("&lt;/script&gt;");
  </code></pre>
  
  <p>How to use this correctly?</p>