Test JavaScript regular expressions live. Enter a pattern, set flags, type test text — see all matches and capture groups instantly.
g global · i case-insensitive · m multiline · s dot-all
Enter a JavaScript regular-expression pattern, choose flags, and provide sample text. Review matches and captured groups against both expected and edge-case inputs.
This page tests JavaScript regular-expression behavior, which can differ from other regex engines. Pathological patterns may take a long time on large input; use small samples and avoid testing untrusted patterns in production.
Most tool inputs are processed in this page. The site also uses analytics and third-party assets; see the Privacy Policy.