in reply to Re: negative look behind (again)
in thread negative look behind (again)

OK. Leslie. Your code works. But what I want is to make "negative look behind" work with this example. It's just to satisfy my knowledge...

Replies are listed 'Best First'.
Re^3: negative look behind (again)
by AnomalousMonk (Archbishop) on Jan 21, 2014 at 23:44 UTC
    >perl -wMstrict -le "for ('TAG1 text one TAG2 etc', 'TAGS text ess TAG2 etc', 'TAG1 text two TAG2 etc', ) { print qq{'$_'} if m{ \A .... (?<! TAGS) .* TAG \d }xms; } " 'TAG1 text one TAG2 etc' 'TAG1 text two TAG2 etc'