ripgrep is a line-oriented search tool that recursively searches the current directory for a regex pattern. Created by Andrew Gallant (BurntSushi), ripgrep combines the usability of The Silver Searcher (ag) with the raw speed of GNU grep.
It respects .gitignore, .rgignore, and .ignore files by default, supports PCRE2 regex, and is dramatically faster than any other line-oriented search tool — typically several times faster than grep on large codebases.
Recursive line-oriented search tool. Faster than grep/ag/ack, smart .gitignore handling, sane defaults.
✨ Features
SIMD-accelerated, parallel directory traversal. Several times faster than grep on large trees.
Respects .gitignore by default. No more noisy results from node_modules and build/.
rg --smart-case: lowercase pattern matches case-insensitively, mixed case becomes exact.
Optional --pcre2 enables lookarounds, backreferences, and full PCRE2 features.
Skips binary files automatically. Encoding detection, multi-line search, JSON output.