AntiPattern
Stale Regex Captures
stale-captures-reuse
Captured regex groups and side effects can be reused after re-evaluation, causing stale matches to persist and duplicate outcomes. When quantifiers or repeated execution occur, previously-captured values or effects aren’t cleared, breaking parsing and producing repeated actions.