I want to split a string using -, +=, ==, =, +, and white-space as delimiters. I want to keep the delimiter
-
+=
==
=
+
Perhaps re.findall would be more suitable for you?
re.findall
>>> re.findall(r'-|\+=|==|=|\+|[^-+=\s]+', "hello-+==== =+ there") ['hello', '-', '+=', '==', '=', '=', '+', 'there']