Capture a submatch for reuse or extraction.
Section: Groups and Alternation
Capturing group
regex
regex
(\d{4})-(\d{2})-(\d{2})Explanation
Groups can be referenced later by number.
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 Groups and Alternation