title: What to do when re.findall does not find the pattern
body: <pre><code>def get_project_name(project_string):
      GG = '%.2f' % (float(re.findall(r"\d+\.?\d*", str(project_string))[0]))
      print (GG)
      return GG
  </code></pre>
  
  <p>Sometimes the entries that this function gets are blank and this gives "index out of range error". </p>
  
  <p>How can I fix it to ignore the entries that are blank then keep going on? Thank you.</p>