Regex Tester
Type a pattern, type some text, see matches highlighted live. Capture groups show up below.
/
/
0 matches
How to use this
- Pattern is the regex — no slashes, just the body (e.g.
\d+). - Flags:
g= find all,i= case-insensitive,m= ^/$ match line starts/ends,s= dot matches newline. - Matches highlight live as you type. Capture groups show in the list below.