Test, validate and match regular expressions
This regex parses Gentoo Linux package atom strings used in Portage package manager. It captures various components including version operators (prefix), category, package name, version, revision, slot/subslot, and USE flags. Useful for validating and extracting structured data from package dependencies in ebuilds and Portage configuration files.