Regex Cheat Sheet/Scoped flags

Enable or disable flags for only part of a pattern.

Section: Flags and Modes

Scoped flags

regex
regex
(?i:api)-v[0-9]+
Explanation

Applies case-insensitive matching just to the group.

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
Extended / verbose mode
Allow whitespace and comments inside the regex.
OpenIn sheetregexsame section
Unicode-aware mode
Enable Unicode-aware parsing or matching.
OpenIn sheetregexsame section
Start of string
Match only at the beginning of the input.