How to use the find and replace text
- Paste your text in the top box.
- Type the word or phrase to look for in Find.
- Type the replacement in Replace with (leave it empty to delete matches).
- Copy the result. The note shows how many replacements were made.
Options
- Ignore upper/lower case matches *Color*, *color* and *COLOR* alike.
- Whole words only stops *cat* from matching inside *category*.
- Regular expression treats the Find box as a pattern, for advanced matching.
Useful regular expressions
| To match | Pattern |
|---|---|
| Any digit | \d |
| One or more spaces | \s+ |
| The start of each line | ^ (not supported per-line; use the line tools) |
| An email address | [\w.+-]+@[\w-]+\.[\w.]+ |
| Text in brackets | \([^)]*\) |
| Three or more line breaks | \n{3,} |
In regex mode, the replacement can use $1, $2 to insert captured groups, and \n for a line break. For example, find (\w+), (\w+) and replace with $2 $1 to swap *Smith, Anna* into *Anna Smith*.