Find and Replace
Find and replace text
Frequently Asked Questions
How do I find and replace text?
Paste your text. Enter the search term and replacement text. Click replace all. The tool highlights all matches before replacing. Options: case-sensitive, whole word only, and regex support. See a count of replacements made and preview changes before applying.
Can I use regular expressions for find and replace?
Yes. Enable regex mode for pattern matching. Examples: \\d+ matches numbers, \\b\\w+@\\w+\\.\\w+\\b matches emails, ^\\s+ matches leading whitespace. Use capture groups ($1, $2) in the replacement. The tool supports full JavaScript regex syntax.
Can I do multiple find and replace operations at once?
Yes. Add multiple search-replace pairs. They are applied sequentially (first pair, then second, etc.). Useful for batch text transformations: replacing multiple terms, standardizing formatting, or cleaning up data. Import pairs from CSV for large operations.
How do I replace text while preserving case?
Enable "preserve case" mode. If the search term is "hello" and replacement is "world": "Hello" becomes "World", "HELLO" becomes "WORLD", "hello" becomes "world". The tool matches the case pattern of each occurrence.
Can I preview changes before applying find and replace?
Yes. The tool shows a diff view highlighting what will change: red for removed text, green for added text. Review each change individually or see all changes at once. Accept or reject individual replacements before applying.