Regex Tester

Developer Tools

Test a JavaScript regular expression against a sample string.

Calculated Result
3 matches

Hello Β· Calnora Β· 2026

Formula: RegExp matchAll

About this calculator

Type a pattern, flags such as i or m, and a test string. Matches are listed in order. A bad pattern shows the engine error.

How It Works & Formula

FormulaRegExp(pattern, flags) then matchAll on the test string

new RegExp(pattern, flags) then matchAll. The global flag is added so every match is collected.