Live regex tester
Type a pattern and test string. Matches highlight as you type.
0 matches
A searchable regex cheat sheet plus a live tester. Look up any token, then try your pattern against sample text with matches highlighted in real time. Free, no sign-up.
Type a pattern and test string. Matches highlight as you type.
0 matches
Type a regular expression in the pattern box and paste sample text below. Matches highlight in yellow as you type, with a live match count and plain-English error messages when the pattern is invalid.
Stuck on syntax? Search the cheat sheet on the right for any token, flag or recipe, grouped into basics, character classes, quantifiers, anchors, groups, lookaround, escapes and flags.
Build patterns from small pieces and test each piece: start with what a valid match looks like, add anchors ^ and $ when the whole string must match, and prefer specific classes like \d over the greedy .*.
Remember the tester uses JavaScript regex flavor, which matches what runs in browsers and Node.js.