Meiyazhagan.2024.720p.hevc.web-dl.hindi.org-tam...
match = re.match(pattern, filename) if match: print(match.groupdict())
It looks like you’re asking to based on a filename: Meiyazhagan.2024.720p.HEVC.WEB-DL.Hindi.ORG-Tam...
Meiyazhagan.2024.720p.HEVC.WEB-DL.Hindi.ORG-Tam... match = re
Since the filename is incomplete and the request is vague, I’ll assume you want one or more of the following: (Python script) A script to parse such filenames into structured info. match = re.match(pattern
import re filename = "Meiyazhagan.2024.720p.HEVC.WEB-DL.Hindi.ORG-Tamil.mkv"
pattern = r'(?P<title>.+?).(?P<year>\d4).(?P<resolution>\d+p).(?P<codec>HEVC|H264|AV1).(?P<source>WEB-DL|BluRay|DVD).(?P<audio>Hindi|Tamil|Telugu|English|Malayalam).ORG-(?P<subgroup>.+?).(?P<ext>mkv|mp4)'