Build, test, and debug regular expressions
Parses and validates Bosch Rexroth Z2S series sandwich-type check valve ordering codes (e.g. Z2S6-1-6X/V), capturing named fields for mounting type, number of functions, unit type/size, function in port, cracking pressure, unit series, seal material, surface coating, pipe port, and special version. Optional alternatives (empty branches) allow codes with omitted segments, while a catch-all group captures additional details. Used with global/multiline flags to validate part numbers in bulk, such as on datasheet RE 21548.