System Tips

JavaScript Regex Tester: Matches & Groups

About JavaScript Regex Tester: Matches & Groups

Test JavaScript regular expressions against sample text. Inspect matches, capture groups, and positions to debug patterns directly in your browser.

How to use this tool

Enter a JavaScript regular expression and test text, select the flags you need, then inspect matches, capture groups, and positions.

What to know

Regular expression syntax varies between languages. A pattern that works in JavaScript may behave differently in PCRE, Python, or .NET.