redis-rdb-tools icon indicating copy to clipboard operation
redis-rdb-tools copied to clipboard

regular expression doesn't match

Open rookie7799 opened this issue 11 years ago • 3 comments

--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 avatar Oct 24 '12 20:10 rookie7799

@rookie7799 Thanks for stopping by and reporting.

I can't reproduce this issue. Can you double check and confirm?

sripathikrishnan avatar Oct 29 '12 13:10 sripathikrishnan

tried it again, the output has everything that's stored in redis

rookie7799 avatar Nov 08 '12 22:11 rookie7799

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.

rookie7799 avatar Nov 28 '12 21:11 rookie7799