Skip to content

Match everything except "/" #19

@priteshshah1983

Description

@priteshshah1983

I have a pattern like:
SOCPattern* pattern = [SOCPattern patternWithString:@"groups/:groupId"]; // valid groupId is of the form group:domain:identifier. Example: group:mydomain:12345

BOOL conform = [pattern stringMatches:@"groups/foo/users"]; // conform is YES

I want the :groupId to match everything other than a "/" so that the above returns NO. Is it possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions