title: Regex - Not matching NewLine when it should?
body: <p>Promise, last of my Regex questions for a while. ..Really.</p>
  
  <p>I'm somehow getting newlines into some matches when I shouldn't, and I'm sure that it's something I'm misinterpreting, OR, the data I'm getting isn't what I expect. (Which IS possible..!) </p>
  
  <p>I have a regex defined:
  <code>new Regex(@"^\s*[0-9]{4}[A-Z]{2}[\s\*]\s*(?&lt;token&gt;.*?)\-(?&lt;value&gt;.*?)$", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.IgnoreCase | RegexOptions.ExplicitCapture);</code></p>
  
  <p>My document/string I get is formatted with the occasional line like:</p>
  
  <pre><code>0000AA Token1     - Value
  0000AA Token2     - Value
  0000AA Token3     - Value
  0000AA Another Tok- Value
  </code></pre>
  
  <p>When I get all the tokens in order like this, the above regex works great. I get four matches:</p>
  
  <pre><code>Match# &lt;token&gt; &lt;value&gt;
  1      Token1      Value
  2      Token2      Value
  3      Token3      Value
  4      Another Tok Value
  </code></pre>
  
  <p>This is good. However, sometimes the user will send me a file where the tokens have the occasional missing line, as in:</p>
  
  <pre><code>0000AA Token1     - Value
  0000AA Token2     - Value
  0000AA Token3     - Value
  0000AA
  0000AA Another Tok- Value
  </code></pre>
  
  <p>When this happens, my regex will give me the following values:</p>
  
  <pre><code>Match# &lt;token&gt;           &lt;value&gt;
  1      Token1             Value
  2      Token2             Value
  3      Token3             Value
  4      0000AA Another Tok Value
  </code></pre>
  
  <p>I know why, it's matching the #4's token starting with the line above it. However, when I change the 'token' grouping to <code>(?&lt;token&gt;[^\n]*?)</code>, I still get the same value in 'token'.</p>
  
  <p>I feel like I'm missing something obvious, because if . was matching newlines when it shouldn't, more folks than I would be raisins a ruckus over it. I have checked the incoming string - newlines ARE <code>\n</code>, and not <code>\r\n</code>, but wondering if something else could be the problem.</p>
  
  <p>Cheers again -
  Mike.</p>