Treat a whole block as literal text.
Section: Escaping and Literals
Quoted literal block
regex
regex
\Q[a-z]+(foo)?\EExplanation
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