Find and replace

Replaces every occurrence of a word or phrase in a text and counts them. Match case, whole words only, or a regular expression with $1 groups in the replacement.

Options
Input · text
Output · text

Waiting for input

Runs in this tab. The text is not sent anywhere.

Related

Questions

How do I replace line breaks or tabs?

Type \n for a line break and \t for a tab in either field: “\n\n” finds blank lines. With “Regular expression” on, \s and the other classes work too.

How do groups work in the replacement?

With “Regular expression” on, $1, $2… put back what the brackets caught, $& the whole match, $<name> a named group. Find (\d+)\.(\d+) and replace with $2.$1 to swap the parts. Without it a $ is just a $.

Does “Whole words” work for Russian?

Yes: word edges are found by Unicode letters, not only Latin ones, so “кот” does not match inside “который”.

↑ ↓ move · Enter open · Esc close