Group without creating a numbered capture.
Section: Groups and Alternation
Non-capturing group
regex
regex
(?:cat|dog)Explanation
Prefer when grouping is needed but capture data is not.
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