title: Regular expression to not match a string in C#
body: <p>I have some HTML that I need to parse (in a large document) as text, and the portion I'm interested in looks like this:</p>
  
  <pre><code>...
  &lt;div id="whatever" class="whatever whatever"&gt;some title with &lt;em&gt;html&lt;/em&gt; and other such tags in it, but never a div tag&lt;/div&gt;
  ...
  </code></pre>
  
  <p>Now I want to get out of it the text within the DIV with the HTML. Here's what I have for the Regular expression (using groups):</p>
  
  <pre><code>&lt;div id=\"whatever\" class=\"whatever whatever\"&gt;(?&lt;title&gt;[^&lt;/div&gt;]*?)&lt;/div&gt;
  </code></pre>
  
  <p>So the idea there is that I'll match the whole thing, and get a group with all the text up to the point where the &lt; /div > occurs (as there's no other identifying factor for the end of the string).</p>
  
  <p>The ^ in [] doesn't work because it's "any" of those characters, not the string "&lt; /div >" that I want. Any ideas how I make this work?</p>