Find and Replace
Beta: this tool hasn't been fully reviewed yet. Double-check results before relying on them.
Inputs
Results
- Replacements
- —
Your input is too long to share as a link, so the page address no longer includes it.
Paste a text, type what to find and what to put instead, and every match is replaced at once. Use it to fix a repeated typo, rename something throughout a document or clean up pasted data.
How to use it
- Paste your text.
- Type what to find and what to replace it with (leave it empty to delete the matches).
- Choose the options, then copy the result.
Examples: finding “cat” with Whole words only in “cat category cat” makes 2 replacements and leaves “category” alone. With Regular expression, find (\w+)@(\w+) and replace with $2 at $1 to swap the parts around the @.
Questions and answers
What can I use in regular expression mode?
JavaScript regular expressions with Unicode support: \d digits, \s spaces, . any character, [abc] sets, + one or more. In the replacement, $1, $2… insert captured groups, $& the whole match and $$ a dollar sign.
How do I remove something?
Leave Replace with empty: every match is deleted.
Why did my search stop?
Some regular expressions take exponentially long on certain texts. The search is stopped after two seconds so the page stays responsive.
Link with pre-filled values
Add # and these parameters to the end of this page's address to open the tool with values already filled in.
| Parameter | What it sets |
|---|---|
text | The text to search. |
find | What to find (text, or a regular expression with regex=true). |
replace | What to put instead (empty deletes). |
case | true to match upper and lower case exactly. |
whole | true to match whole words only. |
regex | true to treat find as a regular expression. |