Technology· Tools for builders
Test a JavaScript regular expression against sample text with live highlighting, every match and its capture groups.
Formula
Runs the pattern with the browser’s ECMAScript RegExp engine using String.prototype.matchAll
Worked example
(\w+)@(\w+)\.com with flags gi finds 2 matches in the sample, with groups ada/example and grace/navy.
Free to use with a link back. Nothing you type is shared.
Preparing citation…
Keep exploring
Format, minify and validate JSON, sort keys and find the exact line and column of any error. Runs in your browser.
Open calculatorBuild a cron schedule from minute, hour, day and month fields, read it in plain English and see the next run times.
Open calculatorDesign a CSS grid from column and row track sizes and gaps, see a proportional preview and copy the CSS or Tailwind classes.
Open calculator2 matches
| # | Index | Match | Group 1 | Group 2 |
|---|---|---|---|---|
| 1 | 8 | ada@example.com | ada | example |
| 2 | 27 | grace@navy.com | grace | navy |
Uses your browser's JavaScript RegExp engine. Text is limited to 20,000 characters and stays on this page.