import re pattern = r'(?<!):' s = 'I:would:like:to:find:out:how:this:works' print(re.split(pattern, s))