I understand how possessive quantifiers work, but I'm stuck thinking of a real example of when one would want to use them. perlre and perlreref have none.
Have you used possessive quantifiers in your code? Why? Please show a sample regex and explain why it needed them.
Edit: Besides quoted strings as mentioned below, do you have any real-world examples of needing to use a possessive quantifier?
xoxo,
Andy
In reply to When would I want to use possessive quantifiers? by petdance
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |