I'm trying to split on a lookahead, but it doesn't work for the last occurrence. How do I do this?
my_str = 'HRC’s'
import re
print(re.split(r'.(?=&)', my_str))
My output:
['HR', 'â', '€', '™s']
My desired output:
['HRC', 'â', '€', '™', 's']