Regex Cheat Sheet/Extended / verbose mode

Allow whitespace and comments inside the regex.

Section: Flags and Modes

Extended / verbose mode

regex
regex
(?x) ^ \d{4} - \d{2} - \d{2} $
Explanation

Improves readability for long patterns.

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 Flags and Modes
Ignore case
Enable case-insensitive matching.
OpenIn sheetregexsame section
Multiline mode
Let `^` and `$` work per line.
OpenIn sheetregexsame section
Dotall mode
Let dot match newlines.
OpenIn sheetregexsame section
Unicode-aware mode
Enable Unicode-aware parsing or matching.
OpenIn sheetregexsame section
Scoped flags
Enable or disable flags for only part of a pattern.
OpenIn sheetregexsame section
Start of string
Match only at the beginning of the input.