added support for querying a key's value using regular expressions