Regex Tester
Free online regex tester. Test JavaScript regular expressions against sample text with live highlighting, match list, capture groups, and flag toggles.
Pattern
//g
Test string
Highlight (2 matches)
Contact [email protected] or [email protected] for info.
Matches & groups
- [email protected]@8groups: [1]=ada [2]=example.com · named: user=ada domain=example.com
- [email protected]@27groups: [1]=budi [2]=test.id · named: user=budi domain=test.id
Cheat sheet
. any char\d digit\w word char\s whitespace* 0++ 1+? 0/1{2,4} repeat^…$ anchors(a|b) alt(?<n>…) named group\b boundary
How to use
- Type the pattern and toggle flags (global, ignore case, multiline).
- Type the test string below.
- Read live highlight plus Matches and groups list.
FAQ
Which flavor is used?
JavaScript (ECMAScript) RegExp, the same engine as your browser console and Node.js.
Why no matches?
Check flags — without global (g) only the first match shows — and escape special chars like . + * ? with a backslash.