Plain mode
The text in "Find" is matched literally, so characters like . or ? have no special meaning. Tick "Whole words only" to replace cat without touching category.
Regular expression mode
Use JavaScript regex syntax. Capture groups can be reused in the replacement as $1, $2, and $& inserts the whole match.
| Find (regex) | Replace | Effect |
|---|---|---|
(\d{3})-(\d{3})-(\d{4}) | ($1) $2-$3 | 555-123-4567 → (555) 123-4567 |
\s+$ | (empty) | Remove trailing spaces on every line |
^ | > | Quote every line |
(\w+)@(\w+) | $1 at $2 | Obscure email addresses |
The m flag is always on, so ^ and $ match at the start and end of each line.