I've a string like this Delete File/Folder. I need to break the sentence based on the / equivalent to or.
Finally need to generate two strings out of this like Delete File as one string and Delete Folder as the other one.
I've tried very naive way where I check for the index of / and then form strings with a bunch of conditions.
It some times fails when we have string like File/Folder Deleted.
Edit:
If you split on / then for case 1 we have Delete File and Folder. Then I'll check for spaces present in first string and spaces present is second string.
The one which has less number of spaces will be replaced with first string last element. This is getting complicated.
"Delete File/Folder".split("/")