ripgrep Documentation
Everything you need to get the most out of the fastest search tool for developers. From first install to advanced configuration.
Getting Started
Install ripgrep and learn the basics in 10 minutes. Covers your first search, common flags, and file type filtering.
User Guide
Comprehensive guide to all ripgrep capabilities: recursive search, filtering, replacements, encoding, and configuration files.
FAQ
Answers to the most common questions about performance, features, installation, and how ripgrep compares to grep and ag.
Regex Syntax
Reference for the default Rust regex engine and the PCRE2 engine. Includes Unicode character classes and common patterns.
Common Flags Cheatsheet
-i Case-insensitive search -w Match whole words only -v Invert match (exclude pattern) -l List matching file names only -c Count matches per file -n Show line numbers (default) -C 3 Show 3 lines of context -t py Search only Python files -g "*.ts" Glob filter -P Use PCRE2 regex engine -z Search compressed files --stats Print search statistics Official Resources
This documentation is adapted from the official ripgrep repository maintained by Andrew Gallant. For the canonical source, see the links below.