Say my string is
st = 'Walking happened at 8 am breakfast happened at 9am baseball happened at 12 pm lunch happened at 1pm'
I would like to split on 'am' or 'pm', but I want those deliminters to be a part of the original chunk.
So the desired result is
splitlist = ['Walking happened at 8 am',
'breakfast happened at 9am',
'baseball happened at 12 pm',
'lunch happened at 1pm']
There are many solutions for keeping the delimiter, but keeping it as a separate item in the list like this one