> But if you feel strongly that the regexp is better, I'm ok with that as well. :)

I don't feel strongly about it, but I do think that the introduction of `procType` makes both solutions difficult to understand at first glance.