Prevent backtracking into a grouped subpattern.
Section: Performance and Backtracking
Atomic group
regex
regex
(?>\d{4}-\d{2}-\d{2})Explanation
Supported in PCRE/Java-style engines; useful in complex validators.
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.