Regular expressions seem like a dark art to me. I use very simple ones frequently enough to remember a few things. Anything slightly more advanced probably involves web searching and copy/paste.
Regexer is a tool for learning and experimenting with regular expressions. It does a great job of breaking down the expressions and showing how each element works. There’s also an extensive library of community patterns to choose from.
via Flowingdata