title: Match everything except a specific string
body: <p>I have looked at lots of posts with similar title but I have found nothing that works with python or even this site: <a href="https://regex101.com" rel="nofollow noreferrer">https://regex101.com</a></p>
  
  <p>How can I match everything but a specific text?</p>
  
  <p>My text:</p>
  
  <pre><code>1234_This is a text Word AB
  
  Protocol  Address          ping
  Internet  1.1.1.1            - 
  Internet  1.1.1.2            25 
  Internet  1.1.1.3            8 
  Internet  1.1.1.4            - 
  
  1234_This is a text Word BCD    
  Protocol  Address          ping
  Internet  2.2.2.1            10 
  Internet  2.2.2.2            - 
  </code></pre>
  
  <p>I want to match <code>Word \w+</code> and then the rest until the next 1234.
  So the result should be (return groups marked in <code>()</code>):</p>
  
  <pre><code>(1234_This is a text (Word AB))(
  
  Protocol  Address          ping
  Internet  1.1.1.1            - 
  Internet  1.1.1.2            25 
  Internet  1.1.1.3            8 
  Internet  1.1.1.4            - 
  
  )(1234_This is a text (Word BCD)(    
  Protocol  Address          ping
  Internet  2.2.2.1            10 
  Internet  2.2.2.2            - )
  </code></pre>
  
  <p>The first part is easy as: <code>matches = re.findall(r'1234_This is a text (Word \w+)', var)</code>
  But the next part I am unable to achieve.
  I have tried negative lookahead:
  <code>^(?!1234)</code> but then it matches nothing any more...</p>