On Mon, Jul 16, 2012 at 11:06:05PM -0700, Andy Isaacson wrote: > The negative look-behind assertion does not work correctly before $ (the > end-of-line assertion). > > I expect to be able to say "match lines that do not end in bar" > using the regex /(?<!bar)$/ . However this does not work: > > % (echo foo; echo bar; echo foobaz) | perl -ne 'print if(/(?<!bar)$/)' > foo > bar > foobaz > % > > It should not have printed "bar" above.
Hi, As this isn't a Debian specific issue I've forwarded this upstream: https://rt.perl.org/rt3/Ticket/Display.html?id=114452 I've also added you as a requestor on that ticket (let me know if that's not what you want). Cheers, Dominic. -- Dominic Hargreaves | http://www.larted.org.uk/~dom/ PGP key 5178E2A5 from the.earth.li (keyserver,web,email) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org