title: Grep. Line of text that does not end with "abcd"?
body: <p>Hi I'm looking for a regular expression for: line of text that does not end with a certain word, let's say it's "abcd"<br>
  At first I tried with<br/> 
  <code>.*[^abcd]$</code><br/>
  That one doesn't work of course. It matches a line that doesn't end with any of the letters a,b,c or d.<br>
  So, in Advanced Grep Topics, I found this expression, but couldn't get it to work:<br> 
  <code>^(?&gt;.*)(?&lt;=abcd)</code><br/>
  -><br/>
  <code>grep -e "^(?&gt;.*)(?&lt;=abcd)$"</code></p>
  
  <p>Any idea for the expression I need?</p>