Skip to content
nah

Find & Replace

Bulk find and replace across any text, with regex, case sensitivity, and whole-word matching.

100% in your browser — files never leave your device

Result

How find and replace works

Plain-text mode escapes every regex-special character in your search term before matching, so searching for 3.14 finds the literal string, not "3", any character, then "14." Turn on Regex to search with actual regular expression syntax instead — the escaping step is skipped and your pattern is compiled directly.

Capture groups only work in Regex mode: wrap part of your pattern in parentheses and reference it in the replacement with $1, $2, and so on. To swap the two sides of an email address, for example, search (\\w+)@(\\w+) and replace with $2.$1 — a rearrangement a plain-text find-and-replace can't do.

Whole-word matching wraps your term in word boundaries (\\b) so cat matches the word cat but not category — but it only applies in plain-text mode, since a regex pattern might already include boundaries or intentionally match partial words. Add \\b yourself in Regex mode if you need it.

Frequently asked questions

Is my text uploaded anywhere?

No. Find and replace runs entirely in your browser. Nothing is sent to a server.

How do I use capture groups?

Turn on "Regex" and reference capture groups in the replacement with $1, $2, and so on. For example, find (\w+)@(\w+) and replace with $2.$1 to swap around an @ sign.

What does "whole word" do?

It wraps your search term in word boundaries so "cat" matches the word cat but not "category". It applies in plain-text mode; in regex mode, add \b yourself.

Related tools