title: Java's Pattern/quote equivalent in ClojureScript
body: <p>When I am in Clojure, I can use <code>(re-pattern (java.util.regex.Pattern/quote foo))</code> to exactly match the pattern string with another string. How can I do a similar thing in ClojureScript?</p>
  
  <p>Edit: I also found this - <a href="https://stackoverflow.com/questions/3614440/replicate-the-functionality-of-javas-pattern-quote-in-a-javascript-regexp">Replicate the functionality of Java&#39;s &quot;Pattern.quote&quot; in a JavaScript RegExp</a></p>