re.findall(r'[A-Za-z]+(?=\'|\.|\-[A-Za-z]+)?', txt)
re.findall(r'[A-Za-z\.\-]+(?:\'[A-Za-z]+)?',txt)
Input
txt = "which would find I'm U.S. co-op, include ending. without the . , but not ' - . rd- "
expected_output
['which', 'would', 'find', "I'm", "U.S.", 'co-op', 'include', 'ending', 'without', 'the', 'but', 'not', 'rd']
I tried the above and variations, but can't get it to work. How to do it?