title: Escape Left Bracket C# Regex
body: <p>I have a string in the following format: </p>
  
  <pre><code>prm.Add( "blah", "blah" ); 
  </code></pre>
  
  <p>I am looking to use regex to extract the first "blah". 
  To do this I am carving the front half off and then the back half. </p>
  
  <p>The regex I'm using to get rid of "prm.Add( " is: </p>
  
  <pre><code>"prm.Add\([ ]*"
  </code></pre>
  
  <p>Other threads seem to indicate that escape characters before paranthesis would be acceptable. However VS complains that I have an invalid escape charcter sequence "(". 
  If I use:</p>
  
  <pre><code>"prm.Add([ ]*" 
  </code></pre>
  
  <p>The application errors as there is no closing paranthesis. </p>
  
  <p>I realise I can get around this by using Regex.Escape on the "prm.Add(". But this isn't really very elegant. </p>
  
  <p>Have I got my regex syntax wrong or does VS2010 not accept escapes of brackets?</p>