title: How to escape [ in app.config file?
body: <p>I have a query that needs to be read from app.config file. The query contains a regular expression. I am not able to specify character class within the regular expression value. The compiler does not recognize the character [. How do I escape it?</p>
  
  <p>Here is my config file value</p>
  
  <pre><code>&lt;add key="GetIds" value="select top 1000 Id from Table1 where  dbo.RegexMatch(TEXT, '&amp;#[0-9]+;|&amp;amp;', 0) &gt; 0 "/&gt;
  </code></pre>
  
  <p>where dbo.RegexMatch is a stored procedure that finds the given pattern in "TEXT".</p>
  
  <p>I am getting an error that says "Invalid Character in a Decimal Number [."</p>