Find and Replace
Find and replace text or regex matches, with a live count.
This tool needs JavaScript enabled to run in your browser.
What this tool does
This tool finds text and replaces it, either as plain text or as a regular expression, and shows how many replacements it made. The work happens in your browser.
Plain text or regex
In plain mode the search is treated literally, so special characters match themselves. Turn on regex mode to match patterns and use capture groups such as $1 in the replacement. The ignore-case option applies to both modes. If a regular expression is invalid, the tool tells you instead of failing silently.
Common use cases
- Making the same edit across a block of text at once.
- Reformatting data with a capture-group replacement.
- Counting how many times a term appears while replacing it.
Frequently asked questions
- Can I use a regular expression?
- Yes. Turn on regex mode and use capture groups such as $1 in the replacement. The match count updates live.
- Is it case-sensitive?
- By default yes, with a toggle to ignore case.
Learning resources
Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.