Text utility
Regex Tester
Test JavaScript regular expressions against text and inspect matches, indexes, and capture groups.
Regex Match Results
2 matches found.
[email protected]
Index 8
[email protected]
Index 31
Online Regex Tester FAQ
Which regex engine is used? This tester uses the browser JavaScript RegExp engine.
Are inputs uploaded? No. Matching runs in your browser.
JavaScript Regex Example
const regex = /invoice-\d+/gi;
const matches = text.match(regex);