Regex Tester
Test regular expressions against sample text and see every match with its capture groups.
To test a regular expression, enter your pattern and sample text. Every match is listed with its position and all capture groups, including named groups. Patterns use JavaScript regex syntax, so what works here works in Node and the browser.
Runs in your browser- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Which regex flavour is this?
Why does my pattern match nothing?
How to use the regex tester
- 1Enter or paste your pattern.
- 2Choose the flags.
- 3Enter or paste your test text.
- 4The result appears immediately — copy or download it.
Embed this tool
Put the working regex tester on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
Regex ExplainerBreak a regular expression into tokens and explain each one in plain English.Naming Convention ConverterConvert an identifier between every common naming convention at once.Cron Expression ParserTranslate a cron expression into plain English and see when it will next run.Content Security Policy GeneratorBuild a CSP header from common presets, with each directive explained.Email, URL & Number ExtractorPull emails, URLs, IP addresses, phone numbers or hashtags out of any text.Text Diff CheckerCompare two texts and highlight exactly what was added and removed.
Last updated
More developer tools