Section: PCRE and Advanced Features

Recursion

regex
regex
^\((?:[^()]++|(?R))*\)$
Explanation

Powerful but niche; useful in engines that support recursion.

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
Keep out / skip fail
Skip over matched prefixes before continuing.
OpenIn sheetregexsame section
Atomic group in PCRE
Avoid backtracking inside a grouped token.
OpenIn sheetregexsame section
Conditional expression
Branch based on whether a group matched.
OpenIn sheetregexsame section
grep whole word
Find full-word matches in files.
Reformat date
Convert YYYY-MM-DD into MM/DD/YYYY.