Avoid backtracking inside a grouped token.

Section: PCRE and Advanced Features

Atomic group in PCRE

regex
regex
(?>[A-Z][a-z]+)\s+\d+
Explanation

Useful when a branch should not be reconsidered.

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 PCRE and Advanced Features
Subroutine call
Reuse part of the pattern as a subroutine.
OpenIn sheetregexsame section
Recursion
Recursive pattern for balanced parentheses.
OpenIn sheetregexsame section
Conditional expression
Branch based on whether a group matched.
OpenIn sheetregexsame section
Keep out / skip fail
Skip over matched prefixes before continuing.
OpenIn sheetregexsame section
grep whole word
Find full-word matches in files.
Reformat date
Convert YYYY-MM-DD into MM/DD/YYYY.