MicroHai
All Dev & Code Text & Formatting Media & Image Security & Crypto Utilities & Everyday

Regex Tester & Debugger

Dev & Code

Real-time regular expression tester with match highlighting, capture groups, common presets & live replace

2 matches
//gm
Quick Presets:
Contact us at hi.microhai@gmail.com or support@microhai.com.
Invalid emails: test@, @example.com, hello@world
Server IP: 192.168.1.100, Date: 2026-11-17
URL: https://microhai.com/tools/regex-tester

Match & Capture Groups

#IndexMatchCapture Groups
114–35hi.microhai@gmail.com $1: hi.microhai $2: gmail.com
239–59support@microhai.com $1: support $2: microhai.com

Regex Replace

About Regex Tester & Debugger

Test and debug regular expressions in real time: live match highlighting, capture group ($1, $2) inspection, g/i/m/s flags, common regex presets, and regex replace preview.

Key Features

  • Instant match highlighting inside your test string
  • Full capture group ($1, $2...) table with start/end indices
  • Built-in presets for Email, URL, IPv4, Date, Hex Color & Numbers
  • Live Regex Replace preview supporting $1, $2, and $& backreferences

How to Use

  1. 1 Enter your regular expression pattern and toggle flags (g, i, m, s), or pick a preset.
  2. 2 Paste your test text to inspect highlighted matches, capture groups, and replace output.