title: PowerShell regex does not match near newline
body: <p>I have an exe output in form</p>
  
  <blockquote>
  <pre><code>Compression          : CCITT Group 4
  Width                : 3180
  </code></pre>
  </blockquote>
  
  <p>and try to extract <code>CCITT Group 4</code> to <code>$var</code> with PowerShell script</p>
  
  <pre><code>$var = [regex]::match($exeoutput,'Compression\s+:\s+([\w\s]+)(?=\n)').Groups[1].Value
  </code></pre>
  
  <p>The <a href="http://regexstorm.net/tester" rel="nofollow noreferrer">http://regexstorm.net/tester</a> say, the regexp <code>Compression\s+:\s+([\w\s]+)(?=\n)</code> is correct but not PowerShell. PowerShell does not match. How can I write the regexp correctly?</p>