belun.app

Find and Replace Text Online — Regex, Whole Word, Case

Matches found
0
Replacements made
0
Lines changed
0

Paste text, type what to find and what to put in its place, and the result updates as you type. Regular expressions with capture groups, whole-word matching that understands Cyrillic, and an option to keep the original capitalisation are one checkbox each. Nothing is uploaded — the replacement happens inside your browser tab.

Frequently asked questions

How do I use capture groups in the replacement?
Tick Regex, then reference groups with $1, $2 and so on. Searching for (\w+), (\w+) and replacing with $2 $1 flips "Smith, John" into "John Smith" on every line at once. Named groups work too: (?<year>\d{4}) is referenced as $<year>. With Regex off the replacement is literal, so a dollar sign stays a dollar sign.
Does whole-word matching work with Cyrillic?
Yes. Whole word checks the characters on both sides of a hit against the Unicode letter and digit categories, so кот is found as a word but not inside котёнок. JavaScript's own \b knows only A to Z, digits and the underscore, which is why it fails on Cyrillic, Greek and accented letters.
What does Match case of original do that Case sensitive does not?
They are different jobs. Case sensitive decides what gets found: with it off, Color and color are both hits. Match case of original decides what gets written: replacing color with colour turns COLOR into COLOUR and Color into Colour instead of flattening everything to lowercase. Turn both on and only exact-case matches are touched.
Can I replace line breaks or tabs?
Yes, with Regex on. Use \n for a newline, \r\n for Windows line endings, \t for a tab and \s+ for any run of whitespace. Replacing \n{2,} with a single space collapses blank-line gaps. Anchors work per line, so ^ matches the start of every line rather than only the start of the text.
Is there a size limit?
The tool stops after 100,000 matches in one pass and says so rather than silently cutting the result. The text itself is limited only by your device's memory.

Related tools