I have a string and I want to split it based on word match. How can I do that? Here is my incomplete attempt
text_ = "Sky is beautiful today"
test = "beautiful"
if test in text_:
#Here the logic
print(text_.split(test))
The above mentioned code does not work, becasue it removes the matched word
Expected output : ["Sky is","beautiful", "today"]