Regex Tester
Test regular expressions against sample text with live match highlighting.
//
2 matches
Contact us at hello@example.com or support@test.co.uk
Match details
[0]hello@example.comat index 14
[1]support@test.coat index 35
About this tool
Enter a regex pattern and flags, then a test string. Matches highlight in amber inline in the test string, and full match details (index, captured groups) list underneath. The tool automatically adds the /g flag internally so all matches are found even if you did not specify it. Supports every flag JavaScript regex supports: g, i, m, s, u, y.