Regex Playground
Pattern
Highlights
Matches
| # | Index | Match | Groups |
|---|---|---|---|
| 1 | 0 | Ada | - |
| 2 | 17 | Grace | - |
| 3 | 40 | Linus | - |
Cheatsheet
\d digit\w word char\s whitespace^ start$ end. any char+ one or more? optional(...) group[abc] set| # | Index | Match | Groups |
|---|---|---|---|
| 1 | 0 | Ada | - |
| 2 | 17 | Grace | - |
| 3 | 40 | Linus | - |
\d digit\w word char\s whitespace^ start$ end. any char+ one or more? optional(...) group[abc] setThe Regex Tester is a live playground for JavaScript regular expressions. Type a pattern, set flags such as g, i and m, and see every match highlighted in your test text along with its capture groups. Ready-made snippets for emails, URLs and dates help you start fast and learn how each pattern works.
No. The tool runs entirely in your browser with JavaScript. Your text never leaves your device, nothing is logged, and it keeps working offline once the page has loaded.
It uses the JavaScript (ECMAScript) engine built into your browser, so patterns behave exactly as they will in Node.js and front-end code.
g finds all matches instead of the first, i ignores letter case, and m makes ^ and $ match at the start and end of each line rather than the whole text.
Last updated: October 2026 · Built by Derar Sattouf