Plain Text & Regex Support
Execute fast literal string replacements or utilize the full power of JavaScript regular expressions with capture groups and multiline anchors.
Find and replace text in documents, lists, code, and logs. Use plain-text searches or regular expressions to update matching content.
256 characters • 4 lines
2 matches found • 2 replaced
Original Matches
The quick brown fox jumps over the lazy dog. Colour is spelled colour in British English, but color in American English. There are vibrant colours and colorful designs everywhere. Contact our team at [email protected] or [email protected] for assistance.
Replaced Output
The quick brown fox jumps over the lazy dog. color is spelled color in British English, but color in American English. There are vibrant colours and colorful designs everywhere. Contact our team at [email protected] or [email protected] for assistance.
Type or paste text, articles, code, logs, or lists directly into the editor, or click "Sample" to test with example content.
Provide your target pattern and replacement text. Choose between literal text and regular expressions, toggle case sensitivity, and limit matches to whole words.
Review side-by-side highlighted matches before and after the replacement, then copy the result to your clipboard or download it as a text file.
Execute fast literal string replacements or utilize the full power of JavaScript regular expressions with capture groups and multiline anchors.
Fine-tune comparisons with case matching, whole-word matching, and choose between global replacements or single-instance updates.
Inspect color-highlighted matches side by side before and after replacement, and transform structured patterns using $1, $2, and named capture groups.
In plain-text mode, characters such as ., *, ?, and $ are matched literally. When "Use Regular Expression" is enabled, prefix any special regex character with a backslash (for example, \. or \$) to match it literally.
When "Multiline (^ / $)" is enabled alongside "Use Regular Expression", ^ matches the start of each line and $ matches the end of each line instead of only the start and end of the full text. This is useful for adding prefixes, suffixes, or cleaning structured lists.
Yes. Turn on "Use Regular Expression" to enable JavaScript RegExp patterns. You can reference numbered capture groups like $1, $2, the full match $&, or named capture groups like $<name> in your replacement field.
Whole Words Only ensures that matches are surrounded by non-word boundaries. For example, finding "cat" will match "cat" but will not match the "cat" inside "scatter" or "caterpillar". Whole-word matching limits replacements to word boundaries recognized by the tool. Boundary behavior may vary for some Unicode scripts and punctuation.
Toggle the replacement mode button from "Replace All" to "Replace First". The tool will replace only the first match while still reporting the total count of matches found throughout your text.
The tool handles large documents, logs, and code snippets smoothly. Processing speed depends on the size of the text and the complexity of the search pattern, so very large documents or complex regular expressions may take longer to evaluate.