.*
Developer ToolsFeaturedNew

Regex Tester

Test regular expressions and inspect matches and capture groups

Regex Tester

Enter a regular expression and test text to inspect matches, indexes and captured groups in real time.

Regex Settings

Enter the JavaScript regex pattern without wrapping / /.

//gi

Test Text

Enter the text content to match.

Chars: 68Lines: 5Bytes: 68Matches: 2

Match Preview

Matched text is highlighted below.

Contact us: [email protected] [email protected] invalid-email@
Match Summary
#1 [12, 34) [email protected] #2 [35, 52) [email protected]

Match Details

Inspect each match, index range and captured groups.

#1 [12, 34)
22 chars
Matched Text
#2 [35, 52)
17 chars
Matched Text
Tip
  • If the g flag is disabled, only the first match is returned.
  • Do not include wrapping slashes. Enter \d+ instead of /\d+/.
  • Complex regex patterns may be expensive on very large text. Keep test input reasonable.

How to Use

Real-time matching

Enter a pattern and test text to instantly inspect match count, indexes and matched text.

Common flags

Supports g, i, m, s and u flags for most JavaScript regex testing use cases.

Group inspection

Inspect captured groups to debug complex regular expressions more easily.

Related Tools

Useful tools in the same category.