๐งช Regex Tester
//g
Contact: alice@example.com or bob@test.org
Matches (2)
#0 @9alice@example.com
#1 @30bob@test.org
Test a regular expression against a string in real time, with matches highlighted. Great for checking how a complex pattern actually behaves โ for example, validating a form field or checking a log-parsing pattern.
How to use
- Enter your regular expression in the "Pattern" field.
- Enter the text you want to test against in the "Test String" field.
- Matches are highlighted in real time, and you can review the full list of matches.
FAQ
Which regex flavor is supported?
JavaScript (ECMAScript) regular expression syntax.
What happens if there's no match?
It clearly indicates no matches were found, which helps you spot issues in your pattern or test string.
Can I check multiple matches with the global flag?
Yes โ if your pattern matches multiple places in the text, every match is highlighted and listed.
Can I see the contents of capture groups?
Yes โ if your pattern includes capture groups in parentheses, the match results list shows the value captured by each group.
Can I test an email or phone number validation pattern?
Yes โ it's well suited to checking whether a regex you wrote for form validation behaves as intended against a variety of test strings.