Toollance

Regex Tester

Test regular expressions online with real-time match highlighting. Debug regex patterns against test strings with flag support and match details.

/
/g

Enter a regex pattern to see matches.

Results update in real-time

What does this tool do?

The Regex Tester lets you test JavaScript regular expression patterns against a test string in real-time. It shows all matches with their index positions and named capture group values.

How to use this tool

  1. Enter your regex pattern (without slashes)
  2. Select the desired flags (g, i, m)
  3. Enter your test string
  4. Matches appear instantly as you type

Supported flags

FlagDescription
gGlobal — find all matches, not just the first
iCase insensitive — match regardless of letter case
mMultiline — ^ and $ match start/end of each line

Common use cases

Example

Pattern: \b\w+@\w+\.\w+\b Flags: g Test string: Contact us at hello@example.com or support@company.org

Matches: hello@example.com, support@company.org

Privacy

All processing happens in your browser. Nothing is transmitted.