Find and Replace
Replace literal text or regular expression matches and review exactly how many replacements were made.
Replacement settings
Search for literal text or use a JavaScript regular expression. Leave the replacement blank to delete matches.
Result
Review the modified text before copying or saving.
Enter text and something to find.
Runs in your browser. Nothing is uploaded.
Also known as: text replacement, search and replace, replace with regex
How to use
- Paste your text and enter what to find.
- Enter replacement text or leave it blank to delete matches.
- Set matching options, replace, and review the revised text.
Frequently asked questions
How do I replace only one occurrence?
Enable Replace only the first match. Otherwise the tool updates all matches.
Can I reorder regex capture groups?
Yes. In regex mode, a replacement such as $2 $1 inserts the second capture before the first.
Are dollar signs special in literal mode?
No. Literal mode inserts the replacement exactly as typed.
Why did a regex time out?
A background worker stops slow patterns to keep the page responsive. Simplify the pattern and try again.