Currently I am looking through all the keys and using regex on them. I have over 2k such keys and it is making my program very slow. I am trying to tune it. Any suggestions are welcomed. Thank you.
Unless you have to, don't try to match beyond the criteria. If it's still slow, you might want break down the hash a bit more, eg by creating a hash of hashes, where the keys of the first hash are the digits left of the comma.
Thanks pludi and durden_tyler for helping to look at my issue.
I think the issue has been settled with pludi's suggestion. I will look into changing the code with hash of hash when i have time