How to use this tool
Type a pattern in the first field and your test string in the larger box below — matches highlight immediately as you type, no button to press. Add flags in the second field: g for all matches, i for case-insensitive, m for multiline anchors.
Common patterns worth knowing
\d+— one or more digits[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}— a reasonably practical email matcher^\s*$— a blank or whitespace-only line, useful with themflag
Frequently asked questions
What do the regex flags g, i, and m mean?
g finds all matches instead of stopping at the first. i makes matching case-insensitive. m makes ^ and $ match the start and end of each line instead of the whole string.
Why does my pattern match nothing even though it looks correct?
Common causes: forgetting to escape special characters like . or (, greedy quantifiers consuming more than expected, or missing the g flag when multiple matches are expected.
What regex flavor does this tool use?
The native JavaScript RegExp engine built into your browser, following the ECMAScript spec. Behavior may differ slightly from PCRE, Python's re, or POSIX regex elsewhere.
ChistStudio