Find & Replace
Replaces text by literal, whole word or regular expression, with capture groups and a preview of every hit.
Find and replace across a whole document, with the match count, the affected lines and a before-and-after preview shown before you copy anything out. Plain text, whole word and full regular expressions, with sed-style case conversion in the replacement.
Text
Find and replace
1 capture group — use $1 in the replacement.
Result
matches
3
replacements
3
lines affected
3
length
96 → 102
Line by line
| Line | Before | After |
|---|---|---|
| 2 | A-1001,Kim Minjun,12000 | ORD-1001,Kim Minjun,12000 |
| 3 | A-1002,Lee Seoyeon,8500 | ORD-1002,Lee Seoyeon,8500 |
| 4 | A-1003,Park Doyun,23000 | ORD-1003,Park Doyun,23000 |
What the replacement box understands
$1,${1},$<name>— capture groups$&— the whole match;$$— a literal dollar sign\n,\t,\u0041— real characters\U…\E,\L…\E— upper and lower case, as in sed and vim
How to use it
Choose how to match
Plain text escapes everything, so a search for a.b finds a.b and not axb. Whole word uses Unicode letter boundaries. Regex gives you the full engine.
Use groups in the replacement
$1 and $<name> insert what the pattern captured; $& is the whole match. \U and \L up to \E change case, as in sed and vim. The panel at the bottom lists the lot.
Read the line-by-line preview
Before and after for each affected line, which is where you notice the replacement also hit something you did not mean.
Common questions
Why does \b감마\b match nothing?
Because \b is defined between an ASCII word character and anything else, and Hangul is not an ASCII word character — so there is no boundary anywhere around 감마. Use the "whole word" mode here, which uses Unicode letter boundaries instead.
The page froze after I typed a pattern
Catastrophic backtracking — a quantifier on a group that itself repeats, like (a+)+, takes exponential time on text that nearly matches. Matching happens inside one call the browser cannot interrupt. The warning appears for patterns shaped like that before you run them.
Can I use \p{Hangul}?
Yes, when the pattern compiles with the unicode flag — which it does unless something else in the pattern is incompatible with it. If the results panel says otherwise, that is why the property escapes stopped working.
It stopped at 20,000 matches
That is the cap, and the result is complete up to it. Split the document, or make the pattern narrower — twenty thousand matches usually means the pattern is matching more than you meant.
Feed it from
Case Converter
Converts between UPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case and CONSTANT_CASE.
Text Anonymiser
Finds emails, phone numbers, card numbers and IDs in free text and masks or pseudonymises them.
Pattern Extractor
Pulls every email, URL, number, date or custom regex match out of a blob of text into a list.
Regex Tester
Tests a regular expression against sample text with live match highlighting and capture group listing.
Next
These accept what this tool produces, so the result can go straight in.
Regex Tester
Tests a regular expression against sample text with live match highlighting and capture group listing.
Text Anonymiser
Finds emails, phone numbers, card numbers and IDs in free text and masks or pseudonymises them.
Case Converter
Converts between UPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case and CONSTANT_CASE.
Pattern Extractor
Pulls every email, URL, number, date or custom regex match out of a blob of text into a list.
Markdown Editor
Edits Markdown with a live preview and exports the rendered HTML, with GFM tables and task lists.
Word & Character Counter
Counts characters with and without spaces, words, lines, paragraphs and UTF-8 bytes.