title: Redis keys as a regex?
body: <p>I have to create a redis database with keys as regex patterns(URL pattern: May be I should say just URL path). So when a URL comes in to my application I need to see which pattern it fits in and get the key. Does redis already provide any easier way to do the pattern matching? </p>
  
  <pre><code>  Any thoughts to improve the logic is appreciated.
  </code></pre>
  
  <p>Regards,
  Lalith</p>