RegEx Find & Replace Substitution Studio
100% In-Browser Privacy
Trending
Perform regex find & replace with capture groups ($1, $2) and flag controls.
Instant Recipe Presets:
Regular Expression Pattern/gim
Replacement Template ($1, $2, $&)Tokens: $1, $2
Active Flags:3 Matches Found
Input Source Text
Replaced Output Preview
Extracted Capture Groups (3 Matches)
Match #1Index: 8
$&: "alice.smith@company.com"$1: "a"$2: "@company.com"Match #2Index: 35
$&: "bob_99@gmail.com"$1: "b"$2: "@gmail.com"Match #3Index: 81
$&: "support.help@techcorp.io"$1: "s"$2: "@techcorp.io"AdvertisementOmnikite Zero Data Storage
Adsterra Ad Placement Slot (728x90)Configure keys in
config/ads.ts to display live campaigns.Non-Intrusive Banner
100% Zero-Upload Privacy
All computation executes exclusively inside your device memory using Web APIs and WebAssembly. No data or files ever leave your browser.
Real-Time Native Execution
Zero network roundtrips. Operates offline without sending external API requests, delivering instantaneous sub-millisecond computation.
Developer-First Architecture
Engineered with RFC standards, cryptographic primitives (Web Crypto Subtle API), and production-grade formatting libraries.
Step-by-Step: How to Use RegEx Find & Replace Substitution Studio
- Enter Pattern: Write your search regular expression with optional capture groups.
- Provide Template: Use $1, $2, or $& in your replacement template.
- Review Output: Inspect live transformed text and copy the output.
Frequently Asked Questions
How do I reference capture groups in replacements?
Use $1 for the first captured group, $2 for the second, and $& for the entire matched substring.
Related Text Utilities Utilities
Text Sanitizer & White Space CleanerStrip non-ASCII, collapse spaces, remove trailing, and fix smart quotes.Word & Character CounterLive statistics: words, characters, sentences, paragraphs, and reading time.Morse Code Translator & Audio SynthesizerTranslate text to Morse code and play real-time audio beeps.String Escaper & UnescaperEscape strings for JavaScript, SQL, RegEx, HTML, Shell, and CSV.