Added namedGroups property to Regex struct.

A revamp of pull #1114, simply squashed.

It's been lingering for a few months, and I guess @bluepeppers found more intertaining things to attend to.

Maybe it's time to merge?