Your files stay on your device

Find and replace text

Find a word or pattern in your text and replace every match at once.

Your text

Loading editor…
Up to 1,000,000 characters

Result

Type what to find, and the result shows up here.

Literal text versus regular expressions

With literal mode on, every character matches only itself, so a dot finds a dot. Turn on regex mode and the same box reads the text as a pattern, where an unescaped dot matches any single character except a line break.

colou?rMatches color and colour, because the u is optional
\d+One or more digits
\.A literal dot, even in regex mode

Escapes and whole-word matches

The usual mistake is leaving out an escape. In regex mode the pattern 1.5 also matches 1x5, so write 1\.5 when you mean a decimal point. Whole words only stops cat from matching inside category. Without that option, a plain search finds it there.

Was this tool useful?