Text Tools

Regex Find and Replace Online

Run regular-expression find and replace with custom flags and capture-group backreferences such as $1. Batch text cleanup stays in your browser.

RegexReplaceText

Favorite this tool

No favorite storage mode has been selected.

Quick actions

Copy this tool URL or open the system share sheet on a supported device.

Use cases

  • Normalize date formats in bulk
  • Mask sensitive values in logs
  • Rewrite repeated template fragments

How to use

  1. Enter the pattern, replacement, and flags
  2. Paste the source text
  3. Select Replace, then copy the result

Example input and output

Pattern / replacement / text

\d+ → [N] / abc 123 def 456

Output

abc [N] def [N]

FAQ

Are capture-group references supported?

Yes. Use $1, $2, and similar backreferences in the replacement string.

Is the text uploaded?

No. Replacement runs locally in your browser.

Tools

Related tools

Continue with another translated tool for a nearby task.

Regex Tester

Regular Expression Tester Online

Available

Test JavaScript regular expressions with live highlighting, match counts, capture groups, flag toggles, and built-in pattern presets. Matching runs locally in your browser.

Regex Testing Developer

Regex Extractor

Extract Matches with Regular Expressions

Available

Extract every regex match from text with flags, capture groups, expand-all groups, dedupe, and multiple output formats for log fields and structured collection.

Text Regex Extract

Remove Duplicate Lines

Remove Duplicate Lines Online

Available

Remove duplicate lines from multiline text with options to ignore case, trim edges, keep first-seen order, and review frequency stats. Processing stays in your browser.

Text Deduplicate Cleanup