How to use it
- Paste your text and type what to find and what to replace it with.
- The result and the number of replacements appear as you type.
- Copy the result. The original stays in the top box.
Regex examples
| Goal | Find | Replace with |
|---|---|---|
| Delete all digits | \d+ | (empty) |
| Add "- " to the start of every line | ^ | - |
| "Smith John" → "John Smith" | ^(\S+) (\S+)$ | $2 $1 |
| 2026-10-11 → 10/11/2026 | (\d{4})-(\d{2})-(\d{2}) | $2/$3/$1 |
In regex mode the replacement only runs when you press "Apply regex", so a heavy pattern cannot freeze the page while you are still typing. Avoid nested repeats such as (a+)+, which can take a very long time on long text. With regex off, symbols like . * $ are matched literally.