title: Matching double line breaks using Regex
body: <p>I am writing a Regex that will extract the various pieces of information from an EDIFACT UN Codes List.  As there are tens of thousands of codes I do not wish to type them all in so I have decided to use Regex to parse the text file and extract out the bits that I need.  The text file is structured in a way that I can easily identify the bits that I want.</p>
  
  <p>I have created the following Regex using <a href="http://regexhero.net/tester/" rel="nofollow" title="Regex Hero">Regex Hero</a> to test it, but I just cannot get it to match everything up to a double line break for the <strong>codeComment</strong> group.  I have tried using the character class <strong>[^\n\n]</strong> but this still won't match double line breaks.</p>
  
  <p><strong>Note:</strong> I have selected the Multiline option on Regex Hero.</p>
  
  <pre><code>(?&lt;element&gt;\d+)\s\s(?&lt;elementName&gt;.*)\[[B|C|I]\]\s+Desc: (?&lt;desc&gt;[^\n]*\s*[^\n]*)
  ^\s*Repr: (?&lt;type&gt;a(?:n)?)..(?&lt;length&gt;\d+)
  ^\s*(?&lt;code&gt;\d+)\s*(?&lt;codeName&gt;[^\n]*)
  ^\s{14}(?&lt;codeComment&gt;[^\n]*)
  </code></pre>
  
  <p>This is the example text I am using to match.</p>
  
  <p>----------------------------------------------------------------------</p>
  
  <ul>
  <li><p>1073  Document line action code                               [B]</p>
  
  <p>Desc: Code indicating an action associated with a line of a
         <br />&nbsp;&nbsp;&nbsp;&nbsp;document.</p>
  
  <p>Repr: an..3</p>
  
  <p>1     Included in document/transaction
            <br />&nbsp;&nbsp;&nbsp;&nbsp;The document line is included in the
            <br />&nbsp;&nbsp;&nbsp;&nbsp;document/transaction.
            <br />&nbsp;&nbsp;&nbsp;&nbsp;should capture this as well.</p>
  
  <p>2     Excluded from document/transaction
            <br />&nbsp;&nbsp;&nbsp;&nbsp;The document line is excluded from the
            <br />&nbsp;&nbsp;&nbsp;&nbsp;document/transaction.</p></li>
  </ul>
  
  <p>What I want is for codeComment to contain the following:</p>
  
  <pre><code>The document line is included in the
            document/transaction.
            should capture this as well.
  </code></pre>
  
  <p>but it is only extracting the first line:</p>
  
  <pre><code>The document line is included in the
  </code></pre>