Decoupled.s01.complete.1080p.nf.10bit.ddp.5.1.x... Guide

Decoupled.S01.COMPLETE.1080p.NF.10bit.DDP.5.1.x...

It looks like you’ve provided a partial filename for a release of – likely from a torrent or usenet posting. Decoupled.S01.COMPLETE.1080p.NF.10bit.DDP.5.1.x...

Decoupled - S01E01 - Episode Name.mkv

import re filename = "Decoupled.S01.COMPLETE.1080p.NF.10bit.DDP.5.1.x264.mkv" clean = re.sub(r'.(1080p|NF|10bit|DDP.5.1|x264|x265|COMPLETE)', '', filename) clean = clean.replace('.', ' ', 1).replace('.', '-') print(clean) # Decoupled - S01 - COMPLETE mkv If you have the actual file, this command gives you a useful text snippet: Decoupled