Make the previous token optional.
Section: Quantifiers
Zero or one
regex
regex
colou?rExplanation
Matches both `color` and `colour`.
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 Quantifiers