title: How to convert javascript regex to safe java regex?
body: <pre><code>strOutput.replace("/{{[^]*?}}/g","");
  </code></pre>
  
  <p>Is there a way to convert JavaScript regexes to Java-safe regexes?</p>
  
  <p>The above statement gives me the error:  </p>
  
  <blockquote>
    <p><code>Invalid escape sequence (valid ones are  \b  \t  \n  \f  \r  \"  \'  \\ )</code></p>
  </blockquote>
  
  <p>I'm not all that familiar with regex, so I could use some guidance.</p>
  
  <p>Thanks!</p>