Use regular expressions to find and replace patterns in any text. Type your regex in the find field and a replacement string in the replace field. The match count updates live and the output pane shows the result instantly. Supports capture groups in the replacement string ($1, $2, etc.). All processing runs locally in your browser.
Input text
Result
FIND & REPLACE
In plain mode, the search text is escaped and matched literally using a JavaScript RegExp with the global flag. In regex mode, the pattern is used as-is. The case-insensitive flag is added unless Case sensitive is enabled. The whole-word option wraps the pattern in word boundaries (\b). String.replace() with the RegExp applies the substitution across the entire input on every keystroke. All processing runs in JavaScript in your browser.
All processing happens locally in your browser tab. Our servers are not involved at any point.
For more advanced pattern matching, try the regex tester. To alphabetise or dedupe the result, use sort lines. For comparing two versions of the text side by side, see text diff.