Find & Replace
Find and replace text across any block with regex support. Free, fast, no signup.
📝 Text Tools
Free
Browser-based
Options
- Case-sensitive — when on, "Hello" and "hello" are treated as different strings.
- Use regex — enables JavaScript regular expressions. For example
\bword\bmatches whole words only. - Replace all — when on, every match is replaced. Uncheck to replace only the first match.
Using Regex in the Find Field
\d+— matches one or more digits.\s+— matches one or more whitespace characters.\bword\b— matches the whole word, not inside other words.(foo|bar)— matches either "foo" or "bar".
Deleting Text
Leave the Replace field completely empty to delete every occurrence of the search term — useful for stripping unwanted tags, HTML attributes, or repeated phrases.
Regex Capture Groups and Backreferences
When Regex mode is on, you can reference captured groups in the Replace field using $1, $2, etc. This allows transformations like reformatting dates or swapping word order without writing a script.
| Find (regex) | Replace with | Effect |
|---|---|---|
(\d{4})-(\d{2})-(\d{2}) | $3/$2/$1 | 2024-06-01 → 01/06/2024 |
(\w+) (\w+) | $2, $1 | John Smith → Smith, John |
\s+ | (space) | Collapse multiple spaces to one |
<[^>]+> | (empty) | Strip all HTML tags |