Find and Replace Text Online — Plain Text or RegExp
Perform fast multi-line plain text or RegExp search & replace in browser.
2 matches replaced.
- Plain mode finds exactly what you type, dots and brackets included. RegExp mode uses JavaScript syntax with Unicode support; write $1 or $<name> in the replacement to insert a group.
When to use the Regex & Multi-Line Find and Replace Tool
Plain text without surprises
In plain mode, dots, brackets and dollar signs are matched exactly as you type them. Searching for 10.0.0.5 never hits 10a0b0c5, and $1 in the replacement is written as it is.
RegExp patterns with groups
Turn on RegExp for patterns such as (\d+)-(\d+) and write $2-$1 as the replacement to swap the parts. A named group is $<name> and the whole match is $&. The syntax is JavaScript's, Unicode classes such as \p{L} included.
Whole words and letter case
Whole words keeps server from hitting serverless, accented letters included. Without match case, Server, SERVER and server count as the same word.
The number of matches is shown
The tool shows how many matches were replaced, so you can tell when a pattern is too broad or hits nothing. An invalid pattern is reported straight away instead of being ignored quietly.
Frequently asked questions
How do I search for line breaks?
Turn on RegExp and search for \n. To join broken paragraphs, the line-break remover fits better because it keeps paragraphs apart.
Does my original text change?
No. The replaced text appears in the result box, and the original stays untouched in the box above.
Why is my pattern refused?
Patterns are read with JavaScript's stricter Unicode rules: an unpaired bracket, or an escape such as \- outside a character class, is refused. The message appears above the result.
How do I write a dollar sign in RegExp mode?
Write $$ in the replacement for one dollar sign. In plain mode, a dollar sign is written as it is.
Is my text sent anywhere?
No, everything is processed in your browser.
Similar tools
- Real-Time Regular Expression & Capture Group TesterTest JS patterns (g/i/m) live with match count, offset indexes & presets.
- Line-by-Line & Inline Word Diff CheckerCompare .env, router scripts & JSON side-by-side showing added & deleted lines.
- UPPER, lower, camelCase, snake_case, kebab-case ConverterTransform strings cleanly between camelCase, PascalCase, snake_case & Title.
- Zero-Width Unicode & Homoglyph Spoof CleanerDetect and strip zero-width joiners, NBSP & invisible formatting bugs in code.