Regexp lab

It's a little brute-forced in places, but it passes all the specs. I'll see if I can get the regexps to be a little more universal.