Text Replacement
Find and replace text instantly, with optional regex support.
O que é Text Replacement?
Text Replacement is a find-and-replace tool that swaps every occurrence of one piece of text for another, instantly, right in your browser. Paste in your text, type what you want to find and what to replace it with, and the result updates live — no need to click a button or wait for a page to reload. It handles simple literal replacements by default (so special characters like a period or a dollar sign are treated as plain text, not pattern syntax), and can switch into full regular-expression mode for more advanced find-and-replace patterns, such as stripping all digits or normalizing whitespace, when you need that extra power.
Como usar Text Replacement
- Paste or type your text into the input box.
- Type the text you want to find in the "Find" field.
- Type what you want to replace it with in the "Replace with" field (leave it empty to delete every match instead).
- Toggle "Match case" on if the search should be case-sensitive.
- Toggle "Use regex" on if you want "Find" interpreted as a regular expression instead of literal text.
- Copy the result once it looks right — it updates automatically as you type.
Exemplos
Simple word swap
Entrada: Text: "The cat sat on the cat mat" — Find: "cat", Replace with: "dog"
Saída: The dog sat on the dog mat (2 matches replaced)
Stripping digits with regex
Entrada: Text: "Order #4821, Invoice #99213" — Find: "\d+", Replace with: "", regex on
Saída: Order #, Invoice # (2 matches replaced)
Erros comuns
- Forgetting to enable "Use regex" and then typing pattern syntax (like \d+ or .*) expecting it to behave as a wildcard — in plain mode it's matched as literal characters instead.
- Leaving "Match case" off when the text contains a word that also appears capitalized with a different meaning (e.g. replacing "may" the month vs. "may" the verb) — turn it on for a precise, case-sensitive match.
- Writing an unescaped special character in regex mode (like a bare parenthesis or bracket) and being surprised by an "Invalid regular expression" error instead of a silent no-op.
- Expecting the replacement to run once — it always replaces every matching occurrence in the text, not just the first one.
Por que usar esta ferramenta
- Processes entirely client-side — your text never leaves your browser.
- Live results with no submit button — see the outcome as you type.
- Supports both simple literal replacement and full regular expressions in the same tool.
- Shows exactly how many matches were replaced, and a clear error message if a regex pattern is invalid.