Find and replace
Find text and replace every match, with optional regular expressions.
Runs in your browser. Nothing you type is sent anywhere.
- Plain text or regular expressions
- Live match count
- Nothing uploaded
How to find and replace text
- Paste your text and type what you want to find.
- Type the replacement text, or turn on regular expressions for pattern matching.
- Check the match count, then copy or download the result.
Find and replace FAQ
What is a regular expression and when do I need one?
A regular expression is a pattern that matches text by rule instead of an exact phrase, such as any digit or any word ending in "ing". Use it when a plain find cannot describe what you want to match.
What do the flags do?
The g flag replaces every match instead of only the first. The i flag makes the match case insensitive. The m flag makes ^ and $ match the start and end of each line instead of the whole text.
Can I remove text instead of replacing it?
Yes, leave the replace field empty and every match is deleted.
Why does my replacement say the pattern is not valid?
That message appears when the regular expression has a syntax error, such as an unmatched bracket or parenthesis. Check the pattern and try again.