regex match and replace multiple patterns,"print('\n'.join([x.rsplit(None, 1)[0] for x in target.strip().split('\n')]))"