code: def parse_metadata_string(metadata_string):
          
          regex = r"STOP_DATE.+?VALUE\s*=\s*\"(.+?)\""
          match = re.search(regex, metadata_string, re.DOTALL)
          end_time_str = match.group(1)
          return end_time_str
docs: Grab end time with regular expression.