Renaming one word in a long text by hand is slow and easy to miss. It finds every match of a pattern — a word, a number format, a date — and replaces them all in one click.
Replace a pattern
- Paste your text. A short sample is already there: “The cat sat. The cat ran.”
- Type your pattern. “Find (regex)” is already set to
cat and “Replace with” to dog. The “Flags” box is already set to g, which means replace every match.
- Click “Replace all”. The text becomes “The dog sat. The dog ran.” — both matches replaced, and the tool tells you how many it found.
Try it, then build on it
- The
g flag means “all of them”. Leave it in to replace every match; take it out and only the first match changes.
- Try a real pattern next. Replace
\d+ with # to swap every number in a text, or \s+ with a single space to tidy up double spacing.
- Test a tricky pattern first. If you are unsure what a pattern will match, try it in the Regex Tester first — it shows every match before you change anything.
- Your text stays on your device. Replacing happens in the browser, so nothing you paste is uploaded.