use common regex for descriptor checks and processing