How to use it
- Paste your text into the box.
- Type what to find and what to replace it with, or switch to Regular expression for patterns.
- Check the highlighted matches, then copy or download the result.
Frequently asked questions
Is my text uploaded anywhere?
No. Searching and replacing happen in your browser. Your text is not sent to a server and the page makes no network requests while you work.
How do I use regular expressions?
Choose Regular expression and type a JavaScript pattern. For example, \d+ matches any number. In the replacement you can use $1 and $2 for groups, $& for the whole match, \n for a new line and \t for a tab.
What does Whole word only do?
A match counts only when it is not part of a longer word, meaning no letter, digit or underscore sits right before or after it. Searching for cat then skips category.
Why was my pattern stopped?
Some patterns, such as (a+)+$ on a long run of the letter a, can take a very long time because the engine tries too many paths. The search runs in the background and is stopped after two seconds so the page stays usable. A simpler pattern usually fixes it.
Which regular expression syntax is used?
Your browser’s own JavaScript syntax, which differs a little from PCRE, Python and other tools. Unicode mode is used when the pattern allows it, so \p{L} for letters works. Lookbehind depends on your browser version.
What is the difference between Replace all and the first match?
With Replace all ticked every match is replaced. Untick it to replace only the first match. The highlighted preview always shows every match.
More free tools
Text Compare | Text Cleaner | Remove Duplicate Lines | Case Converter