redis-rdb-tools
redis-rdb-tools copied to clipboard
regular expression doesn't match
--command json -k "tw_id:111.*" dump.rdb
matches everything including: "tw_id:524869205:username"
it should be matching: "tw_id:11123456:username" "tw_id:111:username" "tw_id:111999:username" etc
No?
@rookie7799 Thanks for stopping by and reporting.
I can't reproduce this issue. Can you double check and confirm?
tried it again, the output has everything that's stored in redis
I think i found the problem: it's when you add -f the output file contains everything. If you leave it out - it's fine.