🔄 Regex Replace Tool
🔒 Client-side — Your data never leaves your browser
✅ 100% Free — No signup, no limits
⚡ Instant — No server processing
Online regular expression find & replace - Capture groups, multiple modes, real-time preview
📝 Input Text
🔍 Regex Settings
✅ Replace Result
🎯 Match Highlight Preview
FAQ
Q1: How do I use capture groups?
Use parentheses () in the regex to create capture groups, then reference them in the replacement with $1, $2, $3, etc. $& represents the entire match, $` is the text before the match, $' is the text after. Example: (\w+)@(\w+)\.com replaced with $1[at]$2.com.
Q2: What do the flag options do?
g=global (match all occurrences, not just the first); i=case-insensitive; m=multiline (^ and $ match line start/end); s=dotAll (. also matches newlines). Flags can be combined, e.g., e.g., gi means global + case-insensitive.
Q3: What regex syntax is supported?
Supports JavaScript standard regex: character classes \d\w\s, quantifiers +*?{n,m}, groups (), alternation |, anchors ^$, lookaheads (?=)(?!), lookbehinds (?<=)(?