# Default values result = 'artist': None, 'album': None, 'year': None, 'format': None, 'bit_depth': None, 'sample_rate': None, 'original': text
It sounds like you're looking for a (perhaps for a music file manager, tag editor, or media player) that can intelligently parse and handle messy or inconsistent folder/filename strings like: Twisted Sister - Stay Hungry -2016- -FLAC 24-192-
# Split remaining by common separators parts = re.split(r'[-_]1,2', clean) parts = [p.strip() for p in parts if p.strip()] # Default values result = 'artist': None, 'album':