Find and Replace

About Find and Replace

Replaces every match in the text and tells you how many were changed.

Plain-text matching is the default, so characters like . * + in your search box are treated literally rather than as regex operators — plenty of people have been burned by that, so it is off until you ask for it. Turn on "Regular expression" and you can use $1 $2 in the replacement, for example converting (\d+)px to $1rem.

"Whole word" only makes sense for languages that separate words with spaces. Chinese does not, so in Chinese text this option changes nothing. "Match case" is off by default, so Apple and apple are both replaced.

When nothing matches, the text is returned unchanged and you get a notice rather than an empty box.

Frequently asked questions

Can I reference capture groups in the replacement?

Yes, with "Regular expression" enabled. Use $1, $2 and so on — for example converting (\d+)px to $1rem.

Why does whole-word matching do nothing in Chinese?

It relies on word boundaries, and Chinese text has no spaces, so the whole passage counts as one word.

Are dots and asterisks treated as regex?

Not by default — plain-text matching. They only become operators when you enable regular expression mode.

Does it wipe my text when nothing matches?

No. The text comes back unchanged with a notice.

Related tools

Text View all ›