3 ms·
I wrote a similar glob-style string matching, but it's far more than 30 lines (130 lines of C): https://github.com/antirez/redis/blob/unstable/src/util.c#L11 h
by antirez 15y ago
I wrote a similar glob-style string matching, but it's far more than 30 lines (130 lines of C):
https://github.com/antirez/redis/blob/unstable/src/util.c#L11 https://github.com/antirez/redis/blob/unstable/src/util.c#L1...
I use it in Redis, but in general being "glob matching" more standard compared to a regexp subset people are more likely to know the syntax.