Code · Regex

Regex Tester

Test regular expressions against sample text and inspect every match and capture group live.

//
Test string
2 matches
ada@example.comindex 8
$1: ada$2: example
grace@devbelt.netindex 27
$1: grace$2: devbelt

Frequently asked

The browser's native JavaScript RegExp — the same one your code runs against.

No. This tool runs entirely as JavaScript in your browser — your input never leaves your device and nothing is logged.

How to use

1

Enter your pattern and flags.

2

Paste a test string.

3

See all matches, positions and groups update instantly.

Related tools