title: Regex matching on dictionary keys
body: <p>Imagine we have a dictionary: <code>{'Hello World': value1, 'Testing': value2}</code></p>
  
  <p>Now we need to look up a word in the dictionary. The key K will need to exactly match 'Hello World' or 'Testing', to use.</p>
  
  <p>So let our <code>text = 'hello     world'</code> we still want this to return <code>value1</code></p>
  
  <p>So how do we handle this regex matching of text to keys? Ideally we don't want to iterate through the dictionary</p>
  
  <p>Edit: Spacing aspect is just a simple example. The text may change in case, be a combination of numbers and letters we want to match. We would usually use a regex pattern</p>