How regex explainer works
A regular expression is a string of tokens that a regex engine interprets as a search pattern. This explainer walks your pattern from left to right and splits it into its constituent tokens — literal characters, escapes like \d and \w, character classes in square brackets, anchors like ^ and $, groups, quantifiers like * and {2,4}, and the alternation |.
Each token is labelled with its type and given a one-line plain-English description, so a pattern such as ^[A-Z]\w+@\w+\.\w+$ reads as "start of string, an uppercase letter, one or more word characters, an @, one or more word characters, a dot, one or more word characters, end of string." Quantifiers report whether they are greedy or lazy and their min and max.
The pattern is first validated by constructing a RegExp from it, so an unbalanced parenthesis or invalid escape returns a clear error instead of a partial explanation. The flags are decoded too (g global, i case-insensitive, m multiline, s dotAll, u unicode, y sticky). Everything runs in your browser.