This pattern uses alternation to match exactly these items. It has one branch for UUIDs (with 8-4-4-4-12 hex digits), one for semantic version strings starting with “v” and including optional pre-release and build metadata, one for the listed currency formats with optional comma-grouped thousands and optional decimal cents, one for valid rgb() color notation with each channel 0–255, and one for valid IPv4 addresses (each octet 0–255). It refuses other partial or invalid strings by strictly matching each type’s exact format.