Find and replace is one of the oldest and most powerful text-editing operations: change a product name across an entire document, fix a recurring typo, or update a date format in hundreds of lines at once. While most editors offer basic replacement, this tool adds case-sensitivity control and regular expression support, bringing editor-grade bulk editing to your browser.
With regex mode you can do far more than literal swaps — collapse repeated whitespace, rewrite phone number formats, or wrap matches in quotes using capture groups. The preview updates live so you can verify the result before copying it.
How to Use This Tool
- Paste your text into the input area.
- Enter the text (or regex pattern) to find and the replacement.
- Toggle case sensitivity or regex mode if needed.
- Click replace and copy the transformed text.
Frequently Asked Questions
What can regex mode do that normal mode cannot?
Regular expressions match patterns instead of exact text. For example, finding \d{4}-\d{2}-\d{2} matches any ISO date, and replacing with capture groups like $1 lets you reorder or reformat the matched parts.
Is the replacement case-sensitive?
You choose. With case sensitivity on, 'Cat' will not match 'cat'. With it off, all case variants are replaced. Note that the replacement text is always inserted exactly as you typed it.
Does it replace all occurrences or just the first?
All occurrences are replaced in one pass. If you only want specific instances changed, make your search string more specific — include surrounding words or use a regex with anchors.