Regex Tester

Test a JavaScript regular expression and inspect match offsets and capture groups.

Workspace

Result

Your result will appear here.

How to use it

  1. Fill in regular expression, flags (g, i, m, s, u), test text.
  2. Select “Test pattern” to see the result.

Worked example

Input
(\d+) on Order 42, item 7
Output
6: "42" ["42"]
15: "7" ["7"]

Frequently asked questions

Which regex syntax does this tester use?

It uses JavaScript regular expression syntax and lists all matches up to 500. Capture groups are listed in order after each match.