Regex Tester

Test a JavaScript regular expression against bounded text input.

Scope: Input and match counts are capped; invalid patterns are rejected before testing.

Workbench

Inputs stay on this page.

How to use Regex Tester

  1. Enter the pattern without the surrounding slashes.

  2. Add flags, such as g for all matches or i to ignore case.

  3. Paste the test text and press “Test pattern”.

About this tool

Test a JavaScript regular expression against sample text and see every match with its position and capture groups, including named groups. Use flags such as g, i and m exactly as in your code.

Questions

Which regex syntax does it use?
JavaScript's RegExp, the same engine as browsers and Node.js. Other engines (PCRE, Python, .NET) differ in places such as lookbehind and named-group syntax.