title: Bulk escape in regex
body: <p>My regex is not so hot so apologies for the very newb question.</p>
  
  <p>I'm using String.replace to change the string "../../libs/bootstrap/less" into just "bootstrap". Currently my regex looks like this: </p>
  
  <pre><code>myString.replace(\.\.\/\.\.\/libs\/bootstrap\/less/g, 'bootstrap);
  </code></pre>
  
  <p>I figure there has to be a better way to escape that path. Is it possible to specify a whole block of stuff to be escaped like /\"../../foo/bar/baz"/ ?</p>