Splitting a String by another string
suggest changestring str = "this--is--a--complete--sentence";
string[] tokens = str.Split(new[] { "--" }, StringSplitOptions.None);
Result:
[ “this”, “is”, “a”, “complete”, “sentence” ]
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents