Regex and Fixed Strings/Match several literal patterns

Provide multiple literal patterns in one command.

Section: Literal and escaped searches

Match several literal patterns

bash
bash
rg -F -e 'panic!' -e 'unwrap()' src/
Explanation

Useful for audits where you want one combined pass over the repository.

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 Literal and escaped searches
Search as a plain literal string
Disable regex parsing and match the text exactly.
OpenIn sheetbashsame section
Escape regex metacharacters
Search for a literal dot while staying in regex mode.
OpenIn sheetbashsame section
Search a literal pattern with PCRE2 multiline support
Match text spanning lines using a more powerful regex engine.
OpenIn sheetbashsame section
Read patterns from a file
Supply many search terms from a separate file.
OpenIn sheetbashsame section
Match one of several patterns
Search for either of two words.
OpenIn sheetbash1 tag match
Use the PCRE2 engine
Turn on advanced regex features such as look-around.
OpenIn sheetbash1 tag match