title: Regular expression to get text between Indicator and Tag
body: <p>I have a report of occurred errors generated from my program and now I want to create some kind of whitelist. Therefore I want to parse all errors which have the tag "@Whitelist"</p>
  
  <p>So the report looks like this:</p>
  
  <pre><code>...
  45)
  Error: some description
  Signal: lorem ipsum
  @Whitelist
  
  46)
  Error: other description
  Signal: lorem ipsum
  File:   some file
  
  47)
  Error: lorem ipsum
  Project: X
  @Whitelist
  @Comment description why this is sent to the whitelist
  ...
  </code></pre>
  
  <p>Here I want to have the Error Nr 45 and 47, but not 46</p>
  
  <p>Ok to sum this up:
  I am trying to have a regular expression to get everything inbetween (including) the tag "Error" (which can be "Warning" or "Message" too) up to "@Comment" (including the comment tag with the message) and only if @Whitelist is present.</p>
  
  <p>There can be N lines inbetween @Whitelist and the Error indicator</p>
  
  <p>Actually I can't come up with a good solution for this problem, some professional out there? Many thanks in advance</p>
  
  <p>Edit: I just realized that it could be possible that the report can change over time, for example there could be a headline added above a group of errors. Meaning: Error 46 and 47 have the same type, so there would be the line "File Read Errors: " above the Error 46. Thats why I wanted to have some kind of solution where I get the Error based on the Tag "Error|Warning|Message" and "@Whitelist"
  I hope it is kind of clear what I mean with this</p>