Regex Pattern Matcher & Replacer
Enter a regex pattern + flags, preview matches (and groups), then preview or apply replacements.
Pattern explanation (basic)
\b— Word boundary\w— Word character (letter, digit, underscore).— Any character (except newline unless dotall /s)+— One or more
Current flags:
giWhat do these flags do?
g— Global: Find all matches (not just the first).i— Ignore case: Case-insensitive matching.m— Multiline: ^ and $ match start/end of each line.s— Dotall: . matches newlines too.u— Unicode: Enable full Unicode matching semantics.
Input Text
Size: 0.1 KB
Match Preview
Total matches: 0
No matches found
The email is john@example.com
His work is jane@work.org
Contact: support@txtutils.net
Captured Groups (active match)
—
Replacement
Available backreferences
$&— entire match$`— text before match$'— text after match$1,$2, ... — capture groups$<name>— named group (if present)$$— literal$
Output
Replaced count (preview): 0