That's going to get ugly fast 🙂 I've updated the gist's pattern, give it a try.
I learned Regex years ago from this site: http://www.regular-expressions.info/ . What I like about it is that it's got the general "applies to everything" information, but it's also got sections specific to many different implementations. So you can get data about perl, java, .NET, PowerShell, VBScript, whatever. 🙂