title: Python row.get(regex)
body: <p>I have been searching for this for a few hours now and I can't seem to find anything about it. </p>
  
  <p>I am parsing a .csv file and I need to pull email addresses out of it. The headers indicate whether it is an email or not, but it is possible for the files to have different formats and I want to handle this with a regex, but I don't know how to do this.</p>
  
  <p>A part of my code is below:</p>
  
  <pre><code>input_file = csv.DictReader(open("contacts.csv"))
  for row in input_file:
  if row.get('E-mail 1 - Value'):
      print row.get('E-mail 1 - Value')
  elif row.get('E-mail 2 - Value'):
      print row.get('E-mail 2 - Value')
  </code></pre>
  
  <p>I would like to be able to do something like this:</p>
  
  <pre><code>input_file = csv.DictReader(open("contacts.csv"))
  for row in input_file:
  if row.get('E-mail*'):
      print row.get('E-mail*')
  </code></pre>
  
  <p>Where it will grab anything that has a header starting with email, but I can't seem to figure out how. I tried to use re.search, but it wasn't what I needed since I don't know how to give it the input string. Thanks in advance for any help!</p>
  
  <p>William</p>