in reply to Re^5: Bug with finding all regexp matches
in thread Bug with finding all regexp matches

This isn't a bug, it's intended behaviour :-)

Hmm, I see your point but AFAIU (*FAIL) itself doesn't add to regexp complexity and could be exempted from caching to allow (${ eval })(*FAIL) pattern to work as the doc itself suggests in other place. Still, my bug report landed next to others that are 4 years old, and given your comment I see where it will go...

So, is there a way in Perl to find all regexp matches?

  • Comment on Re^6: Bug with finding all regexp matches

Replies are listed 'Best First'.
Re^7: Bug with finding all regexp matches
by dave_the_m (Monsignor) on Oct 16, 2016 at 09:15 UTC
    (*FAIL) itself doesn't add to regexp complexity and could be exempted from caching
    Well it could (if at the top-level of a pattern), but that doesn't solve the issue - there are other regex optimisations (currrent or future) apart from the superlinear cache, any of which could potentially cause a match to "prematurely" fail.
    So, is there a way in Perl to find all regexp matches?
    I don't know, but I doubt it could be done reliably,

    Dave.