title: C# | Regex Dotall and Result Match
body: <p>To the point, how i can enable dotall flags on C# Regex ?
  And i have this regex.</p>
  
  <pre><code>string reg = "&lt;table&gt;.*&lt;/table&gt;";
  </code></pre>
  
  <p>And for example, i regexed this html text</p>
  
  <pre><code>&lt;table id="table1"&gt;
  &lt;table id="table2"&gt;
  &lt;/table&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Where does my regex stop the match ? The first <code>&lt;/table&gt;</code> or the second <code>&lt;/table&gt;</code></p>
  
  <p>Thanks guys.. :)</p>