100% In-Browser PrivacySub-ms Execution
Developer UtilitiesID: dev-regex-tester
JavaScript Regex Tester & Debugger
Test and debug JavaScript regular expressions in real-time with capture groups and flags.
//
Valid Pattern • 2 matches found.
#
Full Match
Capture Groups / Index
1
support@edveni.com
index: 8
2
sales@everydaytools.com
index: 55
Technical Specifications & Standards
Executes patterns using the ECMAScript RegExp engine with safety step limits to prevent catastrophic backtracking. Supports standard flags: global (g), case-insensitive (i), multiline (m), dotAll (s), and unicode (u).
Verified Technical Example
Extracting email addresses and domain names from contact text
pattern([a-zA-Z0-9._%+-]+)@([a-zA-Z0-9.-]+\.[a-zA-Z]{2,})
flagsg
testTextReach out to support@edveni.com or sales@everydaytools.com today.
• Compiles pattern with global flag 'g'
• Iterates over match boundaries capturing group 1 (username) and group 2 (domain)
• Outputs match index positions and captured group values
Expected Output:2 Matches found: [1] support@edveni.com (domain: edveni.com), [2] sales@everydaytools.com (domain: everydaytools.com)
Frequently Asked Questions
Are my test strings sent to a server?
No. The regex pattern is compiled and executed exclusively in your browser via the native JavaScript RegExp engine.
How does the tool prevent catastrophic backtracking (ReDoS)?
Our execution loop caps iteration steps at 500 matches and relies on browser event loop safeguards to prevent browser lockup.
What flags are supported?
You can toggle Global (`g`), Case-Insensitive (`i`), Multiline (`m`), Single-line/DotAll (`s`), and Unicode (`u`).
Scope & Technical Limitations
- Supports ECMAScript regex syntax; features exclusive to PCRE, Python, or Go (such as lookbehinds without browser support) may not be available in older browsers.