Regex tester

How to use

Enter a pattern, choose flags (g, i, m, s, u, y), and paste the text to test. Matches are highlighted, and each match lists its capture groups, including named groups. Invalid patterns show the engine’s error inline. Matching runs in a same-origin background thread and stops after about one second if it doesn’t finish, so a catastrophic pattern cannot freeze the page. Results are capped at about 10,000 matches. Everything runs in your browser; nothing is uploaded, stored, or sent anywhere.

Flags

Results

Enter a pattern to see matches here.