Test, validate and match regular expressions
Matches Apple device hardware model identifiers such as iPhone12,1, iPad7,5, or Watch4,1 — a device family name (iPhone, iPad, iPod, or Watch) followed by a 1-2 digit major version, a comma, and a single-digit minor version. Captures the device name, major, and minor numbers in separate groups for easy extraction. Useful for validating or parsing model strings from iOS system info, Xcode logs, or iTunes backup plists. The multiline anchors let it scan and validate identifiers line by line.