Regex Pattern Matcher & Replacer

Enter a regex pattern + flags, preview matches (and groups), then preview or apply replacements.

Pattern explanation (basic)
  • \bWord boundary
  • \wWord character (letter, digit, underscore)
  • .Any character (except newline unless dotall /s)
  • +One or more
Current flags: gi
What do these flags do?
  • gGlobal: Find all matches (not just the first).
  • iIgnore case: Case-insensitive matching.
  • mMultiline: ^ and $ match start/end of each line.
  • sDotall: . matches newlines too.
  • uUnicode: 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