Skip to content

Enhance pattern support #13

@helje5

Description

@helje5

Redi/S patters only support exact, needle*, *needle and *needle* patterns. Full Redis-like pattern support would be great.

Redis supported glob-style patterns:

  • h?llo matches hello, hallo and hxllo
  • h*llo matches hllo and heeeello
  • h[ae]llo matches hello and hallo, but not hillo
  • h[^e]llo matches hallo, hbllo, ... but not hello
  • h[a-b]llo matches hallo and hbllo

Not sure what kinda of regex lib one would want to use here. NSRegularExpression sounds expensive and not quite right (we want UInt8 collection matching here!).

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