My string is s = "ABC foo bar 123 ABC baz nice 345". and the separator is ABC, so:
>>> s = "ABC foo bar 123 ABC baz nice 345
>>> output = re.findall(r"(ABC.*)", s)
>>> output
[ABC foo bar 123 ABC baz nice 345]
I want [ABC foo bar 123, ABC baz nice 345].
What am I doing wrong?