I have a string. I want to split this sentence to smaller strings with given string array.
For example:
The input string is "Word1 Word2 Word3 Word4 Word5 Word6 Word7 Word8" and i want to split this without ["word2, word7, word4"]
The output would be like
"word1"
"word3"
"word5 word6"
"word8"
Thanks in advance.
Use String.Split Method (String[], StringSplitOptions) method.