Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance pattern support #13

Open
helje5 opened this issue Apr 12, 2018 · 0 comments
Open

Enhance pattern support #13

helje5 opened this issue Apr 12, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@helje5
Copy link
Member

helje5 commented Apr 12, 2018

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!).

@helje5 helje5 added the enhancement New feature or request label Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant