Skip to main content
NeatUtility

Find & Replace Text

Text100% Client-Side
Ready
TEXT
0 lines0 chars
0 B / 4.77 MB
About this tool, examples & FAQ

Search and substitute text patterns across single-line or multi-line documents. Supports plain text substrings, regular expression patterns with capture groups ($1, $2), case-sensitive matching, and whole-word boundaries with 100% client-side privacy.

Key facts

Verified capabilities and limits of this utility
Matching EnginesLiteral Text Matching & ECMAScript Regular Expressions
Search ModifiersCase Sensitivity, Whole Word Boundaries (\b), Multiline Anchors (^, $)
Maximum Input5 MB
Execution Deadline3 s

How to use

  1. Enter your search pattern in the Find Query field.
  2. Enter your substitution text in the Replace With field.
  3. Toggle Use Regular Expressions if you want regex pattern evaluation.
  4. Toggle Match Case or Match Whole Word Only to refine precision.
  5. Paste your text into the input pane and click Run (or press Ctrl/Cmd + Enter).

Examples

Replace all occurrences of a word

Input

The blue sky and blue ocean

Example output

The golden sky and golden ocean

Reformat text using regex capture groups

Input

user: Alice, user: Bob

Example output

member[Alice], member[Bob]

Edge cases

Literal Dollar Signs ($) in Replacement Text

When Use Regular Expressions is disabled, dollar signs ($) in the replacement text are treated as exact literal characters. When regex mode is active, $1, $2, etc., expand to matched capture groups.

Special Characters in Plain Text Searches

In plain text mode, characters like ., *, ?, +, [, and ( are automatically escaped, allowing you to find literal punctuation and file extensions without regex syntax errors.

Whole Word Boundary Matching

Enabling Match Whole Word Only ensures searching for 'cat' matches the isolated word 'cat', while ignoring 'catalog', 'concatenate', and 'scatter'.

How it works

  1. Parses the search query as either an escaped literal substring or a standard JavaScript RegExp instance.
  2. Applies the global (g), case-insensitive (i), and multiline (m) flags based on selected options.
  3. Performs in-memory replacement over text lines with linear time complexity.
  4. Executes entirely within an isolated browser Web Worker without uploading text to remote servers.

Frequently asked questions

How do I use capture groups in replacements?

In regex mode, wrap parts of your search query in parentheses like (\w+). In the Replace field, reference them using $1 for the first group, $2 for the second group, and so forth.

Can I replace across multiple lines?

Yes. Multiline search and substitution works across paragraphs, code blocks, logs, and CSV data.

Are my documents, tokens, or scripts sent to a server?

No. All find and replace transformations run 100% client-side in your browser memory.

References