Local StudioDEVELOPER TOOLS Regex Replace Tool
100% Offline Download Tool Tools Catalog

Regex Replace Tool

Transform text with a JavaScript regex and replacement string. Review the before and after previews, then copy or download the full result.

Source Text

Typed or pasted text uses LF line breaks. Open a TXT to retain its original bytes.

Replacement Rules

Enter the pattern without surrounding slashes.

g replaces every match. Leave g out to replace the first match.

Flags and Substitutions

i ignores case, m uses line anchors, s lets dot match a line break, u or v enables Unicode mode, y uses sticky matching, and d enables match indices within the engine.

$1–$99 numbered captures, $<name> named capture, $& whole match, $$ dollar, $` prefix, $' suffix.

Instructions

  1. Choose a UTF-8 TXT file, enter text, or select Open Sample.
  2. Enter a JavaScript pattern, flags and replacement string. Select Replace Text.
  3. Compare before and after, then choose Copy Text or Download TXT.

Up to 2 MiB of UTF-8 input and 8 MiB of UTF-8 output. Pattern and replacement fields accept up to 16,384 code units each. Regex work runs in a cancellable worker with a five-second processing deadline.

Security Check

Regex Replace Tool

Replace text locally using a cancellable JavaScript regex worker.

  • Open UTF-8 TextUse a local TXT or the editor.
  • Apply a RegexSet flags and use capture substitutions.
  • Use the Complete ResultReview the preview, then copy or download the exact output.

Local Security Check

Checking This Tool

Checking the launch, browser policy, and resources.

    These checks cover this tool page. Website links open only when selected.

    File Access

    Text and files stay on your device. Downloads preserve the exact transformed UTF-8 bytes, including retained line endings.