Example of a risky pattern to rewrite.
Section: Performance and Backtracking
Avoid nested greedy stars
regex
regex
(.*a)*Explanation
Nested unlimited quantifiers can explode on some inputs. Prefer more precise tokens and anchors.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Performance and Backtracking
Possessive class quantifier
Consume as much as possible without backtracking.
Constrained tag content
Use explicit stop characters instead of dot-star where possible.