regex for checking year Published on 2022-12-30 by Mohd Use this regex on the movie files!!! match = match = re.match(r'.*([1-3][0-9]{3})', d.replace('1080', ''))