Regex tester
Test regular expressions against sample text with matches and capture groups highlighted.
Matches
Test a JavaScript regular expression against sample text. Matches, capture groups, indexes and replacements update as you type, entirely in the browser.
Native JavaScript rules
Patterns use the same RegExp engine as modern browser code.
See every match
Global matching lists indexes and captured groups while guarding against zero-length loops.
Frequently asked questions
Why does a pattern work elsewhere but not here?
Regular-expression syntax differs between languages. This tool uses JavaScript syntax.
Is my test text uploaded?
No. Testing occurs locally.
Other free tools
- Survey sample size calculator
Work out how many responses you need for a given confidence level and margin of error.
- Survey margin of error calculator
Calculate the margin of error achieved by a completed survey sample.
- Survey response rate calculator
Measure delivery, start, completion, response and drop-off rates from a survey funnel.
Collect your next set of responses
Create a form for your next survey, registration or enquiry, and export the responses when you need them.
Start free