# Attempt to find the year year_match = re.search(r'\b(19|20)\d2\b', content_string) if year_match: info["year"] = year_match.group()