I would like to find substrings in a string based on multiple string patterns.
For example : "word1 word2 word3 and word4 word5 or word6 in word7 in word8"
split based on and, or, in.
The output should be
word1 word2 word3
and word4 word5
or word6
in word7
in word8
 
     
    