regexing hashes