Well, I see by the -2 rating that the monks aren't too happy with my question. I just assumed that since regular expressions are such an integral part of Perl, this would be the best place to find someone knowledgeable in that area. For those interested, I'll probably just end up grabbing the name and type of every input element, throwing them into arrays and then removing duplicates manually.