Substitute literal text or an ECMAScript regular-expression pattern once or globally, with explicit case and word-boundary controls.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Literal mode escapes regex metacharacters before optional \b wrapping; regex mode compiles the entered source directly. Flags g and i control global matching and case folding, then String.prototype.replace interprets ECMAScript replacement tokens such as $&, $1, and $$.
Input: The quick brown fox jumps over the lazy fox. Find: fox Replace: cat
The quick brown cat jumps over the lazy cat.
Documentation edits rename terms, log cleanup removes timestamp patterns, and delimited-data repairs replace exact separators.