Skip to content
Jellykit

Find and Replace

Replace every match in a text at once, with plain or regular expression search, case and whole-word options and a match count.

  • Runs on your device
  • Works in the background
Loading tool

About Find and Replace

Rename a product throughout a document, swap a date format, or delete a phrase wherever it appears. Type what to find and what to put in its place, and the result updates as you type, with a count of the replacements made.

Plain search finds the exact characters you type. Switch on regular expressions for patterns, and use $1 or $<name> in the replacement to reuse what each group captured. Whole words only skips matches inside longer words, in any alphabet.

How it works

  1. Plain search escapes every special character, so the replacement is inserted exactly as you typed it, dollar signs included.
  2. Regular expressions use JavaScript syntax in Unicode mode, always across the whole text and with ^ and $ matching at each line. The replacement understands $1 to $99, $<name>, $& for the whole match and $$ for a dollar sign.
  3. Searching runs in a background worker and stops after three seconds, so a pattern that would take forever cannot freeze the page.

Questions

Is the search case-sensitive?

Not by default: "cat" also finds "Cat" and "CAT". Turn on Match case to find only the exact capitalisation.

How do I find a line break or a tab?

Turn on Regular expression and use \n for a line break or \t for a tab. In plain mode the find box takes a single line of text.

What counts as a whole word?

A match that is not directly preceded or followed by a letter, digit or underscore, in any script. So "cat" is not found in "concat" or "cats", and "été" is found in "un été chaud".

Why was my pattern stopped?

Some patterns, such as (a+)+ run against a long text, take exponentially long. The search is stopped after three seconds and nothing is changed; simplify the repeated parts of the pattern.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.