import re


def removePlexShowYear(title):
    """Removes any trailing year specification of the form '(YYYY)' as is often found in Plex show names"""
    return re.sub(r'([\s.\-_]\(\d{4}\))$', '', title)