So, I am trying to split a string but I don't just want to split it by single character strings, but rather by entire strings.
So if my String is ["hello buddy my name is buddy"]
, my delimiter would be "buddy"
.
I want it to split into: ["hello", "my name is"]
.
I hope i'm not over complicating it.