this thread is old, but since its top google result i thought of adding this:
if you dont want to use regex there is a simpler way to do it. basically just call split, but put back the separator except on the last token
def split_keep_deli(string_to_split, deli):
result_list = []
tokens = string_to_split.split(deli)
for i in xrange(len(tokens) - 1):
result_list.append(tokens[i] + deli)
result_list.append(tokens[len(tokens)-1])
return result_list