Test and debug regular expressions in real-time with match highlighting, capture group display, and a built-in pattern library. All processing happens in your browser.
Real-Time Matching Multi-Language Support Capture Group Display 100% Private
V8 RegExp engine active
//g
Common Patterns (JavaScript)
0 chars
Match Results
No matches
Enter a pattern and test string to see matches
Language Comparison
Feature
JavaScript
Python
PHP
Go
Lookahead (?=)
Lookbehind
Named Groups
(?<n>)
(?P<n>)
(?<n>)
(?P<n>)
Backreferences
Recursion (?R)
Verbose / Extended
re.X
/x
Engine
V8
Oniguruma
PCRE2
RE2
Regex Tester Features
A powerful, browser-based regular expression testing tool with everything you need.
Real-Time Matching
See matches highlighted instantly as you type your pattern and test string.
Multi-Language Support
Generate code snippets for JavaScript, Python, PHP, and Go. See compatibility differences and syntax variations across languages.
Capture Group Display
View all capture groups including named groups with their matched values.
100% Private
All regex processing happens locally in your browser. No data is ever sent to any server.
Frequently Asked Questions
Find answers to the most common questions.
This tool uses JavaScript's built-in RegExp engine, which supports ECMAScript regex syntax. This includes features like named capture groups, lookaheads, lookbehinds, Unicode property escapes, and the dotAll (s) flag.
g (global) finds all matches instead of just the first one. i (case-insensitive) ignores letter case. m (multiline) makes ^ and $ match line boundaries. s (dotAll) makes . match newline characters. u (unicode) enables full Unicode matching and proper surrogate pair handling.
Absolutely. This regex tester runs entirely in your browser using JavaScript's native RegExp engine. No text or patterns are sent to any server. Your data never leaves your device.
Use named capture group syntax in your regex, for example: a pattern like (?P-year-), (?P-month-), (?P-day-) separated by hyphens will create named groups. The tool displays both named and numbered capture groups for each match.