code: def _calculate_progress(self, match):
          '''
          Calculates the final progress value found by the regex
          '''
          if not self.progress_expr:
              return safe_float(match.group(1))
          else:
              return self._eval_progress(matchf _calculate_progress(self, match):
          '''
          Calculates the final progress value found by the regex
          '''
          if not self.progress_expr:
              return safe_float(match.group(1))
          else:
              return self._eval_progress(match)
docs: Calculates the final progress value found by the regex