I need to get all the keys by prefix of the range of 62-125 and followed by ':'
Iv'e tried running the following with no success:
res = r.keys('[62-125]:*')
Also tried using scan:
iter = r.scan_iter('^(6[2-9]|7[0-9]):*')
res = []
for key in iter:
res.append(key)
Is this even possible? if yes how?
Some examples incase it's not clear:
Keys that should be retrieved:
62:kk:345345345
72:hg:76576
88:fg:67886
122:hg:8678
124:gg:8678
Keys that should NOT be retrieved:
0:df:09765
20:gg:6565
38:hh:345
44:bb:3454
61:bb:6568
All the keys in my DB are staring with a number prefix followed by ':' if it matter.