← Tools
REGEX EXPLAINER
DEVELOPERPaste any regular expression — get a plain-English breakdown of every token
PATTERN
/ /
TOKEN VIEW
^([a-z]+)\d{2,4}$EXPLANATION 4 tokens
^ ANCHOR Anchor — asserts position at the start of the string (or line in multiline mode)([a-z]+) GROUP Capture group #1: matches `[a-z]+`\d{2,4} CHAR Digit character (0–9), between 2 and 4 times$ ANCHOR Anchor — asserts position at the end of the string (or line in multiline mode)FLAGS
i Case insensitive — ignore upper/lower case differencesg Global — find all matches, not just the firstTEST STRING 1 match
MATCH #1 index 0–7
"hello42" Group 1
"hello"ABOUT REGEX EXPLAINER
Paste any JavaScript-compatible regular expression and get a token-by-token breakdown in plain English. Hover over an explanation row to highlight the corresponding token in the pattern above. Use the test area to verify your pattern against real input and inspect capture groups.
Supported: anchors, quantifiers, character classes, capture groups, named groups, non-capturing groups, lookaheads, lookbehinds, escape sequences, alternation, and all standard flags (g, i, m, s, u, d).