Fast recursive searching with ripgrep (rg) for codebases, logs, configs, docs, and automation. Covers regex and fixed strings, file filtering, hidden files, context, counts, JSON output, replacements, preprocessing, config files, PCRE2, multiline mode, debugging, and practical code-search recipes.
Category
ripgrep Cheat Sheets
Fast recursive searching with rg, covering patterns, globs, file types, context, replacements, config, debugging, and real-world code search workflows.
Popular in ripgrep
Quick picks to get you started.
Real-World Code Search Recipes
High-value ripgrep recipes for refactors, security scans, framework audits, logs, and docs.
Updated 3/31/2026
Performance, Debugging, and Multiline Search
Understand ripgrep defaults, debug missing results, and use PCRE2 or multiline search when required.
Updated 3/31/2026
Config and Shell Integration
Persist preferred flags, create custom types, and combine ripgrep with fd, fzf, git, and editors.
Updated 3/31/2026
Replace, Preprocess, and Encodings
Preview replacements, search transformed files, and handle compressed or non-UTF8 data.
Updated 3/31/2026
Output, Context, and Reporting
Control headings, context lines, counts, paths, columns, and machine-readable output.
Updated 3/31/2026
Globs, Types, and Ignore Rules
Control what ripgrep searches with globs, type filters, hidden files, and ignore behavior.
Updated 3/31/2026
All ripgrep sheets
8 published sheets · sorted by recently updated.
Real-World Code Search Recipes
High-value ripgrep recipes for refactors, security scans, framework audits, logs, and docs.
Updated 3/31/2026
Performance, Debugging, and Multiline Search
Understand ripgrep defaults, debug missing results, and use PCRE2 or multiline search when required.
Updated 3/31/2026
Config and Shell Integration
Persist preferred flags, create custom types, and combine ripgrep with fd, fzf, git, and editors.
Updated 3/31/2026
Replace, Preprocess, and Encodings
Preview replacements, search transformed files, and handle compressed or non-UTF8 data.
Updated 3/31/2026
Output, Context, and Reporting
Control headings, context lines, counts, paths, columns, and machine-readable output.
Updated 3/31/2026
Globs, Types, and Ignore Rules
Control what ripgrep searches with globs, type filters, hidden files, and ignore behavior.
Updated 3/31/2026
Regex and Fixed Strings
Use basic regex, PCRE2, word boundaries, alternation, and literal searches with ripgrep.
Updated 3/31/2026
ripgrep Basics
Core `rg` searches for files, code, and text with line numbers, smart defaults, and recursive search behavior.
Updated 3/31/2026