Regex Isn't Hard - Tim Kellogg π this is a pretty good conscience article on regexes, and I agree, regex isn't that hardβ’ -- However I think I can make the TL;DR even shorter π
Regex core subset (portable across languages):
Character sets β’ a matches βaβ β’ [a-z] any lowercase β’ [a-zA-Z0-9] alphanumeric β’ [^ab] any char but a or b
Repetition (applies to the preceding atom) β’ ? zero or one β’ * zero or more β’ + one or more
Groups β’ (ab)+ matches βabβ, βababβ, β¦ β’ Capture for extract/substitute via $1 or \1
Operators β’ foo|bar = foo or bar β’ ^ start anchor β’ $ end anchor
Ignore nonβportable shortcuts: \w, ., {n}, *?, lookarounds.