Regular expressions in Javascript, why so painful?

An interesting post I came across on CodePen.

Regular expressions are one of those things that have been hanging around in my peripheral vision - I knew what they did, just not how they did it. Every attempt to figure them out has always ended far too quickly, they just look scary! Recently though, I've picked up an admittedly weird taste for diving deep into some pretty dry pieces of documentation and wading around until it all makes sense. Or at least enough sense to me that I feel justified in making an attempt to re-write it all in a (hopefully) slightly less dry manner.
Iain J McCallum
Keep Reading