Text
Regex Tester
Test regular expressions with live match highlighting and capture group inspection. Everything runs in your browser.
Results
Common Patterns
Enter a regex pattern and test string to see matches
How to use
- Type or paste a regular expression into the pattern field. Matching updates live as you type.
- Toggle the flag buttons (g, i, m, s, u) to change how the regex is applied.
- Paste the text you want to test into the Test String field. All matches are highlighted in amber.
- Click any Common Pattern card to load a ready-made regex and inspect its groups.
What this is for
Regular expressions are compact patterns that describe how to search, validate, or transform text. This tool lets you iterate on a pattern and see exactly which parts of your string match and what each capture group captures, all without leaving your browser. Useful for writing form validators, parsing log lines, and building search-and-replace logic before committing it to code.
More text tools
Built by Albright Labs. We build the systems behind tools like this one, integrations, custom platforms, and automation. Have a project?
Book a consult