Regex Cheat Sheet/Quoted literal block

Treat a whole block as literal text.

Section: Escaping and Literals

Quoted literal block

regex
regex
\Q[a-z]+(foo)?\E
Explanation

Supported in PCRE-style engines to avoid escaping many characters one by one.

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 Escaping and Literals
Literal dot
Match an actual period character.
OpenIn sheetregexsame section
Literal backslash
Match a backslash character.
OpenIn sheetregexsame section
Escaped metacharacters
Match literal regex metacharacters.
OpenIn sheetregexsame section
Absolute start anchor
Match only at the absolute start of the entire string.
OpenIn sheetregex1 tag match
Absolute end anchor
Match only at the absolute end of the entire string.
OpenIn sheetregex1 tag match
Branch reset group
Reset group numbers per alternation branch.
OpenIn sheetregex1 tag match