Find & Replace

Search and replace with regex, case, and whole-word options

When to use find & replace vs an editor?

Most editors have find & replace, but using one in the browser is faster when you're working with text that's currently in a form, an email draft, or a paste buffer — no need to open VS Code, paste, replace, copy back. The tool also gives you regex without learning your editor's flavour: it uses the browser's standard JavaScript regex (PCRE-like).

The match count updates as you type the search pattern, so you know how many replacements you'll trigger before clicking. The result panel shows the modified text, leaving the input untouched in case you want to iterate.

Examples

Replace with regex (capture groups)
Input
Search: \b(\w+)@example\.com\b
Replace: [email protected]
In: [email protected], [email protected]

Frequently asked questions

Does it support regex capture groups?

Yes — use `$1`, `$2`, etc. in the replacement field to reference capture groups, just like in JavaScript's `String.replace`.

What regex flavour is supported?

JavaScript regex (ECMAScript). Lookbehind is supported in modern browsers. Backreferences in patterns (e.g. `\1`) work; named groups (`(?<name>...)`) work.

Is search case-sensitive by default?

Yes — toggle the case-insensitive option to match regardless of case (equivalent to the regex `i` flag).

Will an invalid regex break the tool?

No — invalid patterns show a clear error message under the search field and the replacement is skipped.

Is my text uploaded?

No. All matching and replacement happens in your browser; nothing is sent to a server.