.*
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: support@chatworkon.com admin@example.org invalid-email@
Match Summary
#1 [12, 34) support@chatworkon.com #2 [35, 52) admin@example.org

Match Details

Inspect each match, index range and captured groups.

#1 [12, 34)
22 chars
Matched Text
support@chatworkon.com
#2 [35, 52)
17 chars
Matched Text
admin@example.org
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.