Regex Tester Online
Pattern
/ / g
Test String
Matches & Groups
Cheatsheet
.Any character\dDigit [0-9]\wWord char [a-zA-Z0-9_]\sWhitespace^Start of string/line$End of string/line*0 or more+1 or more?0 or 1 (optional){n,m}Between n and m[abc]Character set[^abc]Negated set(abc)Capture group(?:abc)Non-capturing groupa|bAlternation (or)(?=abc)Positive lookahead ✓100% local ✓No server ✓No signup ✓No tracking
Frequently Asked Questions
What regex flags are supported?
Global (g) finds all matches, Case-insensitive (i) ignores case, Multiline (m) makes ^ and $ match line boundaries, and Dotall (s) makes . match newlines.
What are capture groups?
Capture groups are parts of a regex in parentheses (). They extract specific portions of a match. This tool shows all groups for every match.
Why does my regex cause the page to freeze?
Some patterns cause catastrophic backtracking. This tool limits execution. Simplify nested quantifiers like (a+)+ to fix this.
Is my data safe?
Yes. All processing happens in your browser's JavaScript engine. No data is ever sent to any server.
What regex syntax does this use?
JavaScript's built-in RegExp engine — ECMAScript syntax including lookahead, lookbehind, named groups, and Unicode properties.