Consume as much as possible without backtracking.
Section: Performance and Backtracking
Possessive class quantifier
regex
regex
[A-Z]++Explanation
Can reduce backtracking in ambiguous patterns.
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