When Greedy Regex Eats Your Data: Perl's Non-Greedy Quantifiers in Practice
Perl's non-greedy quantifiers (*?, +?, {n,m}?) stop at the first valid match instead of consuming everything possible. This post shows why greedy matching fails on delimited text, demonstrates a configuration-parsing example, and explains backtracking risks.