I want to segment a string into multiple strings before a curtain substring. Example:
string = 'Hello this is a text Hello this is another text Hello this is yet another text'
Segment before every 'Hello' so that
string_1 = 'Hello this is a text'
string_2 = 'Hello this is another text'
string_3 = 'Hello this is yet another text'
Using string.split('Hello') removes the 'Hello's from the strings, which I don't want. Does anybody have an idea?