Allow regexps to be used when specifying types in stylesheets.