alice@example.combob+test@dev.io.A quick reference for the most useful regex tokens.
.any character except newline\dany digit (0-9)\wword character (letters, digits, _)\sany whitespace\Dany non-digit^start of input (or line with m)$end of input (or line with m)\bword boundary[abc]any of a, b, or c[^abc]anything except a, b, or c*zero or more of the previous+one or more of the previous?zero or one of the previous{n}exactly n occurrences{n,m}from n to m occurrences(...)capturing group(?:...)non-capturing groupa|bmatch a or b(?=...)positive lookahead(?<=...)positive lookbehindTest JavaScript regular expressions against any text right in your browser. Toggle flags, see every match with its position and capture groups, run a replacement, or split the text by the pattern. Nothing leaves your browser.