About the Find and Replace
Replace a word, a phrase or a pattern everywhere in a text at once. Matches are highlighted and counted before you copy the result. Switch on regular expressions for patterns, use $1 to reuse a captured group, and match whole words only so cat does not change category.
How to use it
- Paste your text.
- Type what to find and what to replace it with.
- Check the highlighted matches and the count.
- Copy the replaced text.
Example
- Input
- Find: (\w+)@oldmail\.net Replace: [email protected]
- Result
- [email protected] becomes [email protected]
Questions
How do I replace line breaks?
Turn on Regular expression and search for \n. Replace with a space, a comma, or anything else.
What regex syntax is supported?
JavaScript regular expressions with the Unicode flag: character classes, groups, lookahead and lookbehind, and \p{L} for any letter. Use $1, $2 in the replacement for captured groups and $& for the whole match.
What happens with an invalid pattern?
The tool shows the error message and leaves your text unchanged until the pattern is fixed.