Regex Tester
Type a JavaScript regular expression and some test text to see every match highlighted as you type, with numbered and named capture groups.
Order #1042 placed 2026-09-14 by ada@example.com for $1,249.00 Refund issued 2026-10-01 to grace.hopper+billing@example.org — $89.99 Questions? Visit https://gigsouk.com/help or call (555) 123-4567.
| # | Match | Index | Groups |
|---|---|---|---|
| 1 | 2026-09-14 | 19 | year: 2026 month: 09 day: 14 |
| 2 | 2026-10-01 | 77 | year: 2026 month: 10 day: 01 |
Uses JavaScript's regex engine. Most syntax is shared with Python, PostgreSQL and other engines, but lookbehind and named-group syntax can differ.
How to use the Regex Tester
- 1Type a regular expression and choose flags.
- 2Paste the text to test against.
- 3See matches highlighted, with numbered and named capture groups listed below.
Frequently asked questions
Which regex flavour does this use?
JavaScript's regular expression engine. Most syntax is shared with Python, Java and PostgreSQL, but some features such as lookbehind and named-group syntax differ between engines.
What do the g, i, m, s and u flags do?
g finds every match, i ignores case, m makes ^ and $ match at each line, s lets . match new lines, and u enables full Unicode.
How do named capture groups work?
Write (?<name>pattern). The match table lists each group by name, for example year, month and day for a date.
More free tools
All tools →SQL Formatter
Format messy SQL into clean, readable queries instantly.
A/B Test Calculator
Check statistical significance, lift and experiment results.
Descriptive Statistics Calculator
Mean, median, mode, standard deviation and quartiles from a paste of numbers.
Sample Size Calculator
How many visitors per variant your A/B test needs, worked out up front.
Correlation Calculator
Pearson r, r², a scatter plot and a significance test from two columns.
Percentage Change & CAGR
Percentage change between two values, or compound growth over many periods.
Put your skills to work
Thousands of open roles from companies hiring now — apply directly with the employer.
