def getExtension(filename, delimiter='.'):
    """Returns the filename minus the extension (all characters after last .)"""
    i = filename.rfind(delimiter)
    if i > 0:
        return filename[i + 1:]
    else:
        return ''
