title: Escaping parentheses in code that needs to be searched and replaced (Sublime Text2)
body: <p>I know <a href="https://stackoverflow.com/questions/11819886/regular-expression-search-replace-in-sublime-text-2">how to search and replace strings with Sublime Text2</a> but not when escape characters are used.</p>
  
  <p>For the following javascript code can someone tell me how to escape the parentheses here?</p>
  
  <pre><code>if(PRODUCTION) console.log("hello world");
  
  var log=function(message){
     if(!PRODUCTION) console.log(message);
  };
  </code></pre>
  
  <p>The following does <strong>not</strong> work but seems close to being right:</p>
  
  <p><em>find:</em> <code>if(PRODUCTION) console.log("(\w+)");</code></p>
  
  <p><em>replace:</em> <code>log($1);</code></p>
  
  <p>The ultimate goal is to only do console logging if in a development and not a production environment.</p>