Test regular expressions live with match highlighting and groups.
JavaScript regex · indices use UTF-16 offsets · execution limited to 1 second · up to 500 matches.
Runs in your browser. Your input is processed on this device.
This regex tester lets you build and debug regular expressions live against your own sample text, with matches highlighted as you type. Regular expressions are a powerful pattern-matching language used for search, validation, and text extraction across nearly every programming language.
Toggle flags like global, ignore-case, and multiline, and inspect every match along with its capture groups. It uses the JavaScript regex engine, so what you test here behaves exactly as it will in JS, TypeScript, and Node.js.
It uses the JavaScript (ECMAScript) regular expression engine. Patterns behave identically in JavaScript, TypeScript, and Node.js. Some syntax may differ from PCRE, Python, or Java regex.
g finds all matches instead of stopping at the first, i makes matching case-insensitive, m makes ^ and $ match line boundaries, s lets the dot match newlines, and u enables full Unicode matching.
Wrap the part you want in parentheses to create a capture group. The tool lists each group’s value under every match, so you can confirm your groups capture what you expect.