title: Search using dictionary with re.compile()
body: <p>I ran into a problem while creating a parser. The line I want to parse in a txt file looks like this:</p>
  
  <p><code>'&gt;NAME=  (various_names_here)'</code></p>
  
  <p>Every time I see this <code>"&gt;Name="</code> I want to read in the line. </p>
  
  <p>My dictionary has an item:</p>
  
  <pre><code>my_dict = {
      'name': re.compile(r'&gt;NAME=  (?P&lt;name&gt;.*)\n'),
  }
  </code></pre>
  
  <p>Reading my txt file in by line with a <code>if</code> command for looking for <code>"name"</code>, I never find these lines. </p>
  
  <p>While I'm getting close I can't find the correct syntax to read this line in. It seems I can't quite figure out how to handle the lack of white space between <code>&gt;NAME=</code> and <code>(***)</code>. </p>