1-Byte Developer Tools / Regex
Regex Builder & Tester
Build and test regular expressions with instant feedback, match highlighting and captured groups, free in your browser.
We will highlight each match in the subject and list captured groups on the right.
Quick tips
- Use
^and$to anchor your pattern to the start or end of the line or string. - Wrap parts in brackets
( )to create capturing groups – we will show them per match. - Prefer explicit quantifiers like
{2,5}over endless.*where you can.
Higher subject limits and more matches are available to keep bigger logs workable.
Subject with matches highlighted
Each match is wrapped in a coloured pill so you can see where the pattern is actually firing.
Matches & captured groups
We list each match with its index and any capturing groups. Use this to confirm your pattern is catching exactly what you think it is.
Pattern summary
When you run a pattern, we will echo it here with its flags and some basic hints about anchors and potential pitfalls.
Higher subject and match limits are enabled. If a pattern still feels slow, consider tightening your quantifiers or scoping the subject down first.