in reply to Re: Unexpected regular expression match
in thread Unexpected regular expression match

Thank you, that makes sense. I did indeed think backtracking could not occur within (?>PAT). This may be the first time I've tried to use (?>PAT) and I can't say that reading the documentation really helped understand where backtracking was being suppressed.

The quantifier+ (possessive quantifier) syntax is new to me. Any idea when it was introduced (5.10 maybe)? The phrase "give nothing back" in the documentation makes the possessive quantifier (and by implication (?>PAT) ) much easier to understand in my view.

True laziness is hard work
  • Comment on Re^2: Unexpected regular expression match

Replies are listed 'Best First'.
Re^3: Unexpected regular expression match
by ikegami (Patriarch) on Jan 26, 2012 at 04:14 UTC

    I'll make sure to use "give nothing back" in the future.

    5.10.1 did have it, so yeah, it was surely introduced in 5.10.0