If I have this string: "MyStringToForSplitting" and I want to split it by this word "ring".
If I do this: "MyStringToForSplitting".split('ring')
I will get array that contains this elements:
- MyS
- ToForSplitting
I can't figure out best way to split it and include 'ring' in resulting array like this:
1.MyS
2.ring
3.ForSplitting