How to use
Paste your text
Paste into the Input box on the left. Press Try sample to load a short text with two rules already set up, one for a domain and one for a whole word.
Add find and replace rules
Fill Find and Replace with. Click Add rule for more pairs, up to 50, or Paste rules as CSV to load a list of find,replace lines. Leave Replace with empty to delete matches.
Set options and copy
Tick Whole word only, Case-insensitive, Replace all matches or Regex as needed. Check the highlighted matches and the total, then press Copy or download the result as .txt.
Why Find and Replace Text
- Up to 50 find and replace rules in one pass, typed or pasted as CSV.
- Highlights every match in your text, with a count per rule.
- Whole word, case, first-match-only and regex options with $1 groups.
- Use the result as new input with undo, and nothing is uploaded.
Regex cheat sheet for find and replace
Tick Regex before using these patterns. The Multiline column says whether that option must be on. Patterns are JavaScript regular expressions, and they run on the whole text at once. Each pattern can go in its own rule, so you can stack several of them in one pass.
| Find | Replace with | Multiline | What it does |
|---|---|---|---|
| \n | , | No | Joins lines into one comma-separated line |
| {2,} | (one space) | No | Collapses double and triple spaces to one |
| [ \t]+$ | (empty) | Yes | Removes spaces and tabs at the end of every line |
| ^ | - | Yes | Adds a dash and space to the start of every line |
| (\w+) (\w+) | $2 $1 | No | Swaps two words, for example first and last name |
| [\w.+-]+@[\w-]+\.[\w.]+ | [email] | No | Masks email addresses |
| https?://\S+ | (empty) | No | Deletes web links |