Regex Tester
Pattern
//
Input Text
ResultMatches: 1
ababab
Match Information
Match 10-6ababab
Group 1---b
About
Test whether a regex compiles and find matches in your text.
Supports JavaScript flags i/m/g. Matches update in real time as you type.
Highlights matches inline and shows groups with positions. Provides convenient copy actions.
FAQ
Why do I see no matches?
Check anchors (^/$), flags (g/m/i) and escaping. Remove ^/$ or enable multiline to match across lines.
Are named groups supported?
Yes. When the browser supports named groups, they appear under Match Information.
How are positions shown?
If RegExp.indices is supported, start–end spans are displayed; otherwise positions are hidden.