AI Tool Hub

Regex Tester

Test JavaScript regex with flags and highlight matches.

Guide & how to use

What this tool does

Enter a pattern and flags (g, i, m, s), paste a test string, and see highlighted matches plus capture groups in a table. Runs locally with the JavaScript RegExp engine.

Example input/output

Illustrative sample — your real inputs may look different.

Example input

Pattern: \d{3}-\d{4} · Flags: g · Text: call 555-0199

Example output

Match: 555-0199

Frequently asked questions