Find & Replace
Find every match, preview it highlighted, then replace all in one click - with match case, whole word and full regex support.
Find, preview, then replace
Unlike a browser's built-in find box, this tool shows you exactly what will change before you commit. As you type in the find box, every match lights up in the preview and a live counter tells you how many there are. Only when you are happy do you hit "Replace all", so there are no surprises and nothing is changed until you ask for it.
The three options
- Match case - off by default, so "Apple" matches "apple". Turn it on to treat capitals and lowercase as different.
- Whole word - matches only complete words. Finding "art" skips "start" and "party".
- Regex - treats your search as a regular expression. Use
\d+for digits,^and$for line ends, and capture groups referenced as$1in the replacement.
Handy regex examples
Collapse multiple spaces into one: find \s{2,}, replace with a single space. Swap
"Surname, First" into "First Surname": find (\w+),\s*(\w+), replace with
$2 $1. Strip trailing whitespace: find [ \t]+$, replace with nothing.
If a pattern is invalid, you will see a clear error rather than a broken result.
For pattern building and testing with capture-group inspection, the regex tester goes deeper. To dedupe a list use the duplicate line remover, and to change letter case in bulk try the case converter.