Regex Help: Word not following by another word
807605Aug 23 2007 — edited Aug 26 2007Hi,
I am trying to write a regex that would return me lines containing a given string but it should not be followed by another.
Lets say the lines in the sample file are as follows:
ABC.EXE
ABC.PDF
ABC.TXT
ABC.DOC
RegEx I used is as follows:
^.*ABC.*(?!EXE)$
I want the RegEx to match all lines except the first, looks like the look ahead is not work.