Regex Tester

Test JavaScript regular expression patterns against test strings. Displays live match counts, match indices, and named capture groups.

Regular Expression Pattern & Flags

//gi

Test Document

Match Occurrences (3)Live Execution
Match 01Index: 27

team@swizztool.com

Match 02Index: 106

accounts@swizztool.io

Match 03Index: 131

support@example.org

3 matches detected

How to Use

01.Enter your regular expression pattern in the Pattern field.
02.Toggle flags such as Global (g), Case-Insensitive (i), or Multiline (m).
03.Type or paste test text into the test string editor.
04.Review match counts and capture groups.

Frequently asked questions

The tester runs directly on the native V8/JavaScript RegExp engine in your browser.

Related utilities