
ripgrep
Fast regex search respecting gitignore
The Lens
By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.
Updated Oct 2026
ripgrep (rg) searches every file in a folder for a text pattern, like grep, but faster and with smarter defaults. It searches recursively, skips whatever your .gitignore excludes, and ignores hidden and binary files without being told. It's free, dual-licensed MIT or Unlicense, and VS Code ships it for its search.
Install is one command on every major platform: brew install ripgrep, sudo apt-get install ripgrep, winget, cargo. In the author's Linux kernel benchmark it beats git grep, The Silver Searcher, ugrep and ack, and it stays fast with Unicode on, where GNU grep took 32x longer in one of his tests. No paid tier, no cloud, nothing to run. Solo, small teams and larger teams: free, put it on every machine.
The catch: it isn't grep. It doesn't follow POSIX, it isn't preinstalled everywhere, and its flags differ enough to trip muscle memory, so portable scripts should stay on grep. Lookarounds and backreferences need -P for PCRE2. And respect the --pre flag, which runs a program on every file it searches: AnythingLLM shipped a remote code execution bug in 2026 because its AI agent passed patterns to rg without a -- separator. Untrusted input needs that guard.
Free vs Self-Hosted vs Paid
fully freeFree: Everything. ripgrep is dual-licensed under MIT or the Unlicense, your choice. No paid features, no commercial edition.
Self-hosted: Nothing to host. It's a single rg binary. Every release ships precompiled binaries for Windows, macOS and Linux (Linux and Windows builds are static), and it's packaged for Homebrew, Chocolatey, Scoop, winget, pacman, dnf, apt and cargo.
Paid: No paid tier. The author takes donations through GitHub Sponsors.
Free with no paid tier, under MIT or the Unlicense. The only cost is the minute it takes to install.
What to do by team size
- Solo
- free; install it and use it for every code search
- Small team
- free; standardize on it for code search, keep grep in portable scripts
- Medium team
- free; your VS Code installs already ship it
- Large team
- free; any internal tool that passes user input to rg must put `--` before the pattern
Get tools like this every Wednesday
One featured tool, three on the radar. No fluff.
Similar Tools
A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores
Trust Signals
License: MIT OR Unlicense
Dual-licensed at your choice.
Commercial use: ✓ Yes
About
- Stars
- 69,750
- Forks
- 4,169
Explore Further
More tools in the directory
rea
Reverse engineer anything with agents, from app behavior down to native binaries.
435.8k ★openclaw
Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞
394.0k ★everything-claude-code
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
298.1k ★

