Seventh.son.2014.720p.hindi.english.vegamovies.... < Top 100 Newest >
def extract_features(file_string): # Assuming a pattern pattern = r"(.*)\.(\d{4})\.(.*)\.(.*)\.(.*)" match = re.match(pattern, file_string) if match: return { "title": match.group(1), "year": match.group(2), "resolution": match.group(3), "languages": match.group(4).split("."), "source": match.group(5) } else: return None
import re
if features: print(features) This Python snippet would output: Seventh.Son.2014.720p.Hindi.English.Vegamovies....
{ 'title': 'Seventh.Son', 'year': '2014', 'resolution': '720p', 'languages': ['Hindi', 'English'], 'source': 'Vegamovies' } Seventh.Son.2014.720p.Hindi.English.Vegamovies....
# Example usage file_string = "Seventh.Son.2014.720p.Hindi.English.Vegamovies" features = extract_features(file_string) Seventh.Son.2014.720p.Hindi.English.Vegamovies....