Find and replace
Find and replace text, with optional regular expressions, case sensitivity and whole words.
Runs in your browser – your files are not uploaded
How to use Find and replace
- 1
Paste your text into the input field.
- 2
Enter the search term and the replacement, and set the options you need.
- 3
Copy or download the edited text from the output field.
About Find and replace
Paste your text, enter what to find and what to put in its place, and the result appears instantly together with the number of replacements. By default the search ignores case; you can switch on case-sensitive matching or restrict it to whole words so that “cat” does not change “category”.
For more complex edits, enable regular expressions. The replacement can then use $1, $2 and so on for capture groups and $& for the whole match – handy for reordering dates, cleaning up lists or reformatting data. Everything happens in your browser.
Frequently asked questions
Which regular expression syntax is used?
JavaScript regular expressions with the Unicode flag. If the pattern is invalid, the error message from your browser is shown.
Can I replace with an empty string?
Yes. Leave “Replace with” empty to delete every match.
Can I undo a replacement?
Your input is never changed – the result is shown in a separate field. Just adjust the search or clear it to get back to the original.