Which regex flags does this tester support?
This tester supports global (g), case-insensitive (i), multiline (m), and dotAll (s) flags.
Free online regex tester to test regular expressions against any text. Highlights all matches, shows match count, groups, and index positions instantly.
JavaScript regex has quirks that PCRE testers won't surface - stricter lookbehind rules in older runtimes, no atomic groups, different flag behavior. Testing in the actual JS engine before shipping means fewer production surprises.
This runs the JavaScript RegExp engine - the same one your browser uses. If your regex passes here, it passes in production JS code. Useful for testing patterns before embedding them in validators or parsers, and for debugging when a pattern works in a PCRE tester but not in your JavaScript.
Test an email or phone validation regex before adding it to a form. Debug a pattern that matches too much or too little. Inspect capture group values from a string parser. Verify flag behavior across global, multiline, and sticky modes.
The most common debugging question is why a regex that worked elsewhere fails in JavaScript. The FAQ covers engine differences, greedy vs lazy, and capture group indexing.
Type your regex pattern and select the flags you need.
Add the string you want to test the pattern against.
Matching text is highlighted and match details appear below.
Check match count, index positions, and capture groups.
Common questions about this tool and how to use it.
This tester supports global (g), case-insensitive (i), multiline (m), and dotAll (s) flags.
Yes. Each match card shows the full match, its start index, and any named or indexed capture groups.
It uses the JavaScript built-in RegExp engine - perfect for testing patterns used in Node.js, browsers, and TypeScript.
Leave your email so we can prioritize similar tools and updates.
Trending tools will appear as visitors explore the catalog.
Your recently visited tools will show up here.