How to find and replace text or regex patterns
- Paste into Original text and enter the Find and Replace with values.
- Choose whether to replace every match, ignore case or use a regular expression.
- Select Replace text, check the match count and choose Copy result.
Search and replace literal text in a draft
Paste your draft into Original text to find and replace text or replace text online without uploading your document to a server. In literal text mode, the tool performs an exact search and replace across the input and is set to replace all matches by default. Clear replace all matches when only the first occurrence should change, or enable Ignore letter case to match May and may in the same pass.
Run regex replace with capture groups
Turn on Use regular expression when you need a pattern-based regex replace — such as reformatting dates, swapping CSV columns or renaming identifiers like Order-(\d+) to Ticket $1 using a numbered or named capture group. Leave the replacement field blank to delete every match. If you want to inspect individual matches and group indices before modifying a long file, test the pattern in the regex tester first. Patterns run inside an isolated background worker with a one-second timeout so complex expressions never freeze your browser tab.
Clean and compare the updated text
Short words can match inside longer words, so add word boundaries (\b) in regular expression mode when substrings should stay untouched. Use remove extra spaces to normalize whitespace, text compare to review every modified line against the original draft and remove duplicate lines if a replacement produces identical rows.
Frequently asked questions
Can I delete matching text?
Yes. Leave Replace with empty to delete each selected match.
How do I replace just the first match?
Clear Replace all matches before selecting Replace text.
How do I use a capture group?
Enable Use regular expression and use $1 for the first capture, or $<name> for a named capture. Enter the pattern without surrounding slashes.
Can I insert a literal dollar sign?
In literal mode, all replacement characters are copied as written. In regular expression mode, use $$ for a single dollar sign.
What if a regular expression takes too long?
You can cancel it. The worker also stops automatically after about one second, and output is limited to 500,000 characters.
Last updated November 11, 2026