title: Regex help to match expression and exclude certain match
body: <p>I am trying to solve this problem where the same phrase is present in one or more lines but I only want to match the correct form. </p>
  
  <p>In my case I want all case IDs in a line block</p>
  
  <p>my line block looks like this</p>
  
  <pre><code>!# Reason: Reason in Detail
  !# ACL: Rule
  !# Modifier: Mod1 - 11/17/05 - ccc REMEDIATION: added expiration date
  !# Modifier: Mod2 - 06/21/06 - qqq REMEDIATION: changed expiration date
  !# Modifier: Mod3 - 4/22/2008 - renewed for 1 yr per REQ&lt;TEST1XX&gt;
  !# Requester: Req1
  !# Group: imp1
  !# Exp. Date: 4/22/2009
  !# Reference Case : http://case/C1TEST1TEST1XXX
  !# Case : C1TEST1TEST1TEST2
  !# Case # C1TEST1TEST1TEST1X
  </code></pre>
  
  <p>I am using the Regular expression <code>\bCase :.*\b\W</code> to match all the cases but some line blocks contain a reference case which I want to avoid. Not sure how to do this. Any help would be appreciated.</p>
  
  <p>My Regex fiddle: <code>https://regex101.com/r/HA3zEe/1/</code></p>