Regex Tester
Test a JavaScript regular expression against bounded text input.
- Free
- No sign-up
- Runs in your browser
- Nothing uploaded
Scope: Input and match counts are capped; invalid patterns are rejected before testing.
Workbench
Inputs stay on this page. Press Ctrl or ⌘ + Enter to run.
How to use Regex Tester
Enter the pattern without the surrounding slashes.
Add flags, such as g for all matches or i to ignore case.
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.

