title: Regex to match all except word with symbol
body: <p>I am trying to parse unit test exception messages and separate them from the stack trace from st-out. The output is formatted like so:</p>
  
  <pre><code>  Message:
      Failed: expected invocation of Session.endDialog(It.isValue("login complete.")) exactly 1 times, invoked 0 times
       Configured setups:
       Session.endDialog(It.isValue("login complete."))
  
       Performed invocations:
       Session.sendTyping()
       Session.endDialog("Login complete.")
  
    Stack:
          at Object.&lt;anonymous&gt; (&lt;some path&gt;\&lt;some file&gt;.spec.ts:274:19)
          at fulfilled (&lt;some path&gt;\&lt;some file&gt;.spec.js:4:57)
          at process._tickDomainCallback (internal/process/next_tick.js:228:7)
  </code></pre>
  
  <p>The important bits are:</p>
  
  <ul>
  <li>There is always a <code>Message:</code> preceded by 2 spaces, followed by a newline.</li>
  <li>What follows <code>Message:</code> is 1 or more lines of text possibly with consecutive newlines.</li>
  <li>There is always a <code>Stack:</code> preceded by 2 spaces, followed by a newline.</li>
  <li>What follows <code>Stack:</code> is 1 or more lines of stack trace type text.</li>
  </ul>
  
  <p>The parser is a little complicated in that it is line based but supports loops and a different RegExp is needed to capture the various important parts for the message.</p>
  
  <p>I have working expressions for everything, except for one. <strong>Basically I need a RegEx to match anything after the line with <code>Message:</code> until the <code>Stack:</code>, one line at a time.</strong></p>
  
  <p>Eg, it must match:</p>
  
  <pre><code>    Failed: expected invocation of Session.endDialog(It.isValue("login complete.")) exactly 1 times, invoked 0 times`
  </code></pre>
  
  <p>and</p>
  
  <pre><code>     Configured setups:
  </code></pre>
  
  <p>and</p>
  
  <pre><code>     Session.endDialog(It.isValue("login complete."))
  </code></pre>
  
  <p>etc, but not</p>
  
  <pre><code>  Stack:
  </code></pre>
  
  <p>I have tried using negative look-ahead with no luck, this is what I have so far:</p>
  
  <p><strong><code>\s+(?!Stack:).+</code></strong></p>