So I have a string that I want to split but I need to keep the exact part that I'm splitting
- s_words = 'i need toKeepTHISword'
- splitWord = s_words.split('THIS')
- # Result: ['i need toKeep', 'word']
Result wanted : ['THIS']
It does not have to be with split function, it can be with whatever other solution may exist..