Developer ToolsFree
Regex Tester
Test regular expressions against any text in real time. Highlights all matches with color coding, displays match groups and captured values, and supports all JavaScript regex flags (g, i, m, s). Essential for developers writing pattern matching and validation code.
Updated June 2026
- 1Enter your regular expression
- 2Paste test text
- 3Review the highlighted matches
//
How to use Regex Tester
- 1
Enter your regular expression
Type your pattern and select flags like global or case-insensitive.
- 2
Paste test text
Enter the sample text you want to test the pattern against.
- 3
Review the highlighted matches
Every match is highlighted live as you edit the pattern or text.
Frequently asked questions
Everything you need to know about regex tester.
JavaScript regular expressions (ECMAScript spec). This is compatible with JavaScript, TypeScript, and closely matches the regex syntax in Python, Java, and most modern languages.
global (g) — find all matches; case-insensitive (i); multiline (m) — ^ and $ match line boundaries; dotAll (s) — dot matches newlines.
Yes. All capturing groups (group 1, group 2, etc.) and named groups are displayed alongside each match.
Explore more free Developer Tools
ToolBubble (Tool Bubble) has 14 free developer tools that work in your browser, with no signup required.
We read every message
Need help with Regex Tester?
Report an issue or suggest an improvement. Messages go straight to the people who build ToolBubble.