Text Find & Replace
Find and replace text with support for regular expressions, case sensitivity, and whole word matching. See matches highlighted in real-time.
Find and replace text with regex support, case sensitivity, and whole word matching. See matches highlighted in real-time.
All processing happens locally in your browser. Supports JavaScript regex syntax including capture groups (, ) in replacements.
How to Use This Tool
- 1
Enter your text
Paste or type the text you want to search through. Click "Load Sample" to try with example text.
- 2
Set find and replace
Type the text to find and what to replace it with. Matches are highlighted in real-time as you type.
- 3
Configure options
Toggle case sensitivity, whole word matching, or enable regex for advanced pattern matching.
- 4
Replace and copy
Click "Replace First" or "Replace All", then copy the result or apply it back to the input.
Frequently Asked Questions
- Does it support regular expressions?
- Yes. Enable the "Use regex" checkbox to use JavaScript regular expression syntax. You can use capture groups in replacements with , , etc.
- What does "Whole word" mean?
- When enabled, it only matches the search term when it appears as a complete word, not as part of another word. For example, searching for "cat" won't match "category".
- Can I undo a replacement?
- The replacement result is shown separately from the input. You can click "Apply to Input" to update the input with the result, or simply modify your search and try again.
- Is there a size limit?
- There is no hard limit, but very large texts (over 1MB) may slow down the real-time highlighting. The match preview is limited to 500 highlighted matches for performance.