regular expressions I still look up every time

The bits of regex syntax I forget between projects. Not a tutorial, just the reference card I wish I'd bookmarked years ago.

01
. matches any character except a line break
beginners overuse this one before they learn the alternatives
02
\d matches any digit, same as [0-9]
03
\w matches a word character: letters, digits, underscore
not spaces, that trips people up
04
\s matches whitespace: space, tab, newline
05
^ anchors to the start of the string (or line, with the m flag)
you will look this up again the day you actually need the m flag
06
$ anchors to the end of the string (or line, with m)
07
* means zero or more of whatever came before it
08
+ means one or more
i use this one more than any other, by far
09
? means zero or one, or makes a quantifier lazy right after it
the double meaning is the confusing part
10
{n,m} matches between n and m repeats of the thing before it
11
(...) is a capturing group, saves the match for later
12
(?:...) is a non-capturing group
use this when you need the grouping but not the capture, cleaner results
13
(?=...) is a lookahead, matches only if followed by the pattern
14
(?<=...) is a lookbehind, matches only if preceded by the pattern
newer browsers only, check support before you ship it

Or start a list of your own. Free, it takes a minute.