Text

Regex Text Replacement

Replace text matched by a regular expression, with configurable flags and replacement text.

№ 038Runs locally

What this tool does

Regex Text Replacement. Replace text matched by a regular expression, with configurable flags and replacement text.

When to use it

Use it for repeatable edits such as changing patterns across many lines at once.

How to use

  1. Try this sample input first: text: cat 7 · pattern: \d · replacement: #.
  2. Choose or adjust the options this tool provides; leave unrelated settings at their defaults.
  3. Run the tool and read any validation or status message. Correct the input format before trying again if needed.
  4. Check whether the result matches the example output: cat #. Then copy or download it.

Your input and files are processed in this browser. They are not uploaded by this toolbox.

Input and output example

Sample input
text: cat 7 · pattern: \d · replacement: #
Sample output
cat #