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
developer
JSON Formatter & Validator
Format, minify, and validate JSON data.
developer
Base64 Encoder / Decoder
Encode and decode Base64 strings and UTF-8 text.
developer
URL Encoder / Decoder
Encode and decode query strings and URL components.
developer
JWT Decoder
Decode JSON Web Token headers, payloads, and timestamps.