def feat_tokens(for_artist=True):
    feat_words = ['ft', 'featuring', 'feat', 'feat.', 'ft.']
    if for_artist:
        feat_words += ['with', 'vs', 'and', 'con', '&']
    return '(?<=\s)(?:{0})(?=\s)'.format(
        '|'.join(re.escape(x) for x in feat_words)
    )
Return a regular expression that matches phrases like "featuring"
dataset/ETHPy150Open beetbox/beets/beets/plugins.py/feat_tokens