# Try ripgrep in a browser sandbox

Recursively search code with regex, fast

Source: https://www.agentclash.dev/try/ripgrep
Markdown export: https://www.agentclash.dev/md/try/ripgrep
Session limit: 10 minutes

A page visit does not create a sandbox. Starting a disposable session requires an explicit action on the HTML page.

## Suggested commands

- **Show version**: `rg --version`
- **Search a file**: `rg --line-number 'root' /etc/passwd`
- **Create & search files**: `mkdir src && echo 'fn main() {}' > src/main.rs && echo 'struct Foo;' > src/lib.rs && rg 'fn|struct' src/`
- **Case-insensitive search**: `rg -i 'MAIN' src/`

## Links

- [Documentation](https://github.com/BurntSushi/ripgrep)
- [Source repository](https://github.com/BurntSushi/ripgrep)