This would be something like the initializer
/// Create a UUID from a string such as "E621E1F8-C36C-495A-93FC-0C247A3E6E5F".
///
/// Returns nil for invalid strings.
public init?(uuidString string: String)
But works with Regex
or RegexComponents
so it can work with capture and transform out of the box, like Date.ISO8601FormatStyle
supports.