Bulk Find & Replace
Add as many rules as you need and they run top to bottom over the result of the last one. Each rule reports how many replacements it made, so a rule that silently matched nothing is obvious.
0 replacements
Press Esc to clear
Rules, applied top to bottom
- 1
Nothing to find
Result
About the Bulk Find & Replace
One find and replace is something every editor already does. A list of them applied in a fixed order is not, and it is what you actually need when migrating a document, renaming a set of identifiers, cleaning an export, or applying the same set of corrections to text that arrives in the same broken shape every time.
Order is the point and also the trap. Rules run top to bottom, each over the output of the one before it, so a rule replacing a with b followed by a rule replacing b with c turns every original a into c. That chaining is occasionally exactly what you want and more often a surprise, which is why each rule reports its own replacement count. A rule showing zero replacements either did not match anything or was consumed by an earlier rule, and either way you can see it rather than discovering it in the output.
Regular expression mode gives you capture groups: match a pattern, then rebuild it in a different shape using $1 and $2 in the replacement. That is how you turn a list of names from first-last into last-first, or reformat a set of dates, in one rule instead of by hand. A pattern you type is untrusted input, so it is compiled defensively — an invalid expression shows you the engine's own error message and leaves the text untouched, and a pattern that would match an empty string everywhere is refused rather than run.
Whole-word matching prevents the classic mistake of renaming cat and silently changing category. Everything runs in your browser.
Frequently asked questions
In what order do the rules run?
Top to bottom, each one over the result of the previous rule. That means rules can chain: replacing a with b and then b with c turns every original a into c. Each rule reports its own count so you can see when that has happened.
What happens if my regular expression is invalid?
Nothing is changed and the rule shows the error message from the regex engine, which names the position of the problem. The other rules still run.
How do I use capture groups in the replacement?
Turn on regex mode, wrap part of the pattern in parentheses, and refer to it as $1, $2 and so on in the replacement. This is how you reorder names or reformat dates in a single rule.
You might also need
- Text
Case Converter
Convert text between camelCase, snake_case, kebab-case, Title Case and six more, instantly.
- Text
Text Cleaner
Strip HTML, smart quotes, invisible characters and stray whitespace from pasted text.
- Text
Sort & Dedupe Lines
Sort, deduplicate, shuffle, reverse and number a list of lines, with natural number ordering.
- Developer
Regex Tester
Test a regular expression against your text, with highlighted matches and a group table.