Skip to content

It would be nice if there is a parser for UUIDs that could be used with the Swift Regex API. #1470

@itingliu

Description

@itingliu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions