http://www.perlmonks.org?node_id=1085213


in reply to look-ahead greed changed between perl releases?

G'day raygun,

That was a bug which was fixed in 5.14.0.

From perl5140delta: Regular Expression Bug Fixes:

  • A pattern containing a + inside a lookahead would sometimes cause an incorrect match failure in a global match (for example, /(?=(\S+))/g) [perl #68564].

-- Ken