UTILUTILWAY
Tools > Regex Tester

Regex Tester

Test regular expressions and see match results

Presets:
//g
Flags:
Test Text

🔒 This tool runs in your browser only. No input data is sent to any server.

About Regex Tester

Regex Tester lets you build and test regular expressions against sample text with real-time match highlighting. See matched groups, capture groups, and match indices instantly. Supports JavaScript regex flags including global, case-insensitive, multiline, and dotAll modes.

How to Use

  1. Enter your regular expression pattern in the pattern field.
  2. Set regex flags (g, i, m, s) as needed.
  3. Type or paste test text in the input area.
  4. View highlighted matches and capture group details in real time.

Key Features

  • Real-time match highlighting as you type
  • Support for all JavaScript regex flags (g, i, m, s, u)
  • Display of capture groups and match indices
  • Detailed error messages for invalid patterns