* Ronald J Kimball <rjk-perl-...@tamias.net> [2011-11-16 21:50]: > It is greedy, but the important thing to remember is that the regular > expression engine will find the longest *leftmost* match.
To put that a third way: the engine will match at the first possible location, and will make the match as long as possible at that location.