title: How to search (using regex) for a regex literal in text?
body: <p>I just stumbled on a case where I had to remove quotes surrounding a specific regex pattern in a file, and the immediate conclusion I came to was to use vim's search and replace util and just escape each special character in the original and replacement patterns.</p>
  
  <p>This worked (after a little tinkering), but it left me wondering if there is a better way to do these sorts of things. </p>
  
  <p>The original regex (quoted): <code>'/^\//'</code> to be replaced with <code>/^\//</code></p>
  
  <p>And the search/replace pattern I used:
  <code>
  s/'\/\^\\\/\/'/\/\^\\\/\//g
  </code></p>
  
  <p>Thanks!</p>