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

Replies are listed 'Best First'.
Re^2: look-ahead greed changed between perl releases?
by raygun (Scribe) on May 06, 2014 at 18:17 UTC
    Aha! I had overlooked that. Thanks, Ken!