def _shortened(word):
    dpos = word.find('$')
    return '|'.join((((word[:dpos] + word[(dpos + 1):i]) + '\\b') for i in range(len(word), dpos, (- 1))))
def _shortened(word):
    dpos = word.find('$')
    return '|'.join((((word[:dpos] + word[(dpos + 1):i]) + '\\b') for i in range(len(word), dpos, (- 1))))