title: How to extract data between <form></form> with C#
body: <p>I've tried to accomplish this with regex but it seems not to be working at all.
  I tried the same regex pattern with PHP, Javascript and it worked like a charm. I have no idea why it's not working with C#.</p>
  
  <p>Here is my code sample:</p>
  
  <pre><code>        Regex mysReg = new Regex(@"&lt;form[^&gt;]*action=""do\.php""[^&gt;]*&gt;(.*)&lt;\/form&gt;", RegexOptions.IgnoreCase | RegexOptions.Multiline);
  
          MatchCollection form = mysReg.Matches(html);
  </code></pre>
  
  <p>If I remove the part <code>&lt;\/form&gt;</code> the regex works ok but it doesn't get the content inside the parenthesis. </p>
  
  <p>Now some of you will tell me to use "HtmlAgilityPack". I've tried to use it but, since I'm still unfamiliar with C#, I found it hard to work with it, since there is no documentation came with it.</p>
  
  <p>So is there any way to work around this problem? </p>