I have a long string, and I want to break it into smaller stinger whenever a certain pattern showed up: (in below case 123 my)
my_str = '123 my string is long 123 my string is very long 123 my string is so long'
I want the result to be:
result = ['123 my string is long ', '123 my string is very long ', '123 my string is so long ']
Length of string is unknown. and I don't want to remove anything from the main string.