title: regex match any until certain string TCL
body: <p>I am trying to match certain string it goes like this:</p>
  
  <pre><code>apn xxxxx
        blah blah blah
        blah -blah blah blah -blah -blah blah-blah-blah
        blah-blah
        blah blah blah-1 blah-blah BLAH
        blah blah BLAH-2 blah-blahBLAH
        blah blah BLAH-3 blah-blahBLAH
        blah blah BLAH-4 blah-blahBLAH
        blah-blah blah-blah blah  1 blah-blah blah
        blah blah 2000
        blah blah 600
        ipv6 primary fc00:a:a::300
        ipv6 secondary fc00:a:a::400
        blah blah-blah blah-blah-blah-blah-blah blah
        blah blah-blahblah-blah-blah-blah-blah blah
        blah blah-blah-blah BLAH_BLAH_BLAH_BLAH
        blah-blah blah BLAH
        blah-blah blah 2000
      exit
  </code></pre>
  
  <p>I am trying to match the text <code>fc00:a:a::300</code> with <code>ipv6 primary</code> as the anchor while using the <code>xxxx</code> as a key.  I am trying to use a working regex pattern that matches all the possible <code>blah</code>s that would contain any character.  Any suggestions?</p>
  
  <p>I've tried using <code>\s[\w+\-]\s+ipv6\s+dns primary\s+</code> but am not able to match the text.</p>