title: How to use regex with glob library
body: <p>I have a folder with a number of input files to use for a D3 visualization. But, I'm having trouble getting my regex code to work with glob. This allows a user to specify years(Note: all my input files have formatting YYYY_MM_#<em>produpdt</em>###):</p>
  
  <pre><code>from glob import glob
  
  years = "[\'2016\']"
  months = "[\'12\']"
  loc = "produpdt_files/"
  file_list = []
  for year in years:
      file_list.extend(glob(loc+year+"*"))
  print file_list
  </code></pre>
  
  <p>How should I code this to work with years and months? The following does not work:</p>
  
  <pre><code>from glob import glob
  
  years = "[\'2016\']"
  months = "[\'12\']"
  loc = "produpdt_files/"
  file_list = []
  for year in years:
      for month in months:
          print(loc+year+"_12"+"*")
          file_list.extend(glob(loc+year+"_"+month+"*"))
  print file_list
  </code></pre>