in reply to Non-greedy match end of line bug?

> Should not \n be included in the match in both cases? What am I missing here?

the $ is not inside your $1 group, so why should \n be included in the second print?

anyway $ is a zero-length assertion

never mind, fletch already gave the perfect answer.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery