in reply to When would I want to use possessive quantifiers?
As mentioned by others, .*+ et al are syntactic sugar for (?>...) 'atomic' grouping. See the extensive discussion of the latter under (?>pattern) in the Extended Patterns section of perlre.
Update: See also Using independent subexpressions to prevent backtracking in the Part 2: Power tools section of perlretut.
|
|---|