Interactive Regex Tester
Free ToolTest and debug regular expressions in real time with syntax highlighting, capture groups, instant match count, and cheat sheet presets.
Instant 0ms
100% Client-Side
/
/
Flags:
Popular Presets:
Matches Found
Match Details & Groups
No matches found. Check your pattern or test string.
Match #
Captured Groups:
Regex Cheat Sheet
Character Classes
.Any character except newline\dAny digit [0-9]\DAny non-digit\wWord char [A-Za-z0-9_]\sWhitespace (space, tab, newline)[a-z]Character in range a-z
Quantifiers
*0 or more times+1 or more times?0 or 1 time (optional){3}Exactly 3 times{2,5}Between 2 and 5 times
Anchors & Groups
^Start of string or line$End of string or line\bWord boundary(...)Capturing group(?:...)Non-capturing group
Frequently Asked Questions
It uses the JavaScript ECMAScript (ECMA-262) regex engine natively in your browser with zero latency.
Flag "g" searches globally for all matches, "i" makes matching case-insensitive, and "m" allows ^ and $ to match start and end of each line.
No! The regex engine runs 100% locally in your browser. None of your test text or regex strings ever leave your device.