Linux grep and ripgrep Cheat Sheet/Literal string search in ripgrep

Disable regex parsing for a search term.

Section: ripgrep (rg)

Literal string search in ripgrep

bash
bash
rg -F 'http://localhost:3000' .
Explanation

Useful for URLs or strings containing regex metacharacters.

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 ripgrep (rg)
Search recursively with ripgrep
Fast codebase search.
OpenIn sheetbashsame section
Search with line numbers
Show matches with file and line context.
OpenIn sheetbashsame section
Search only specific file types
Restrict search by glob.
OpenIn sheetbashsame section
Include hidden files
Search dotfiles and hidden paths.
OpenIn sheetbashsame section
List files containing matches
Return only matching file names.
OpenIn sheetbashsame section
Match literal text only
Disable regex interpretation.
OpenIn sheetbash1 tag match