Splitting a String by another string

suggest change
string str = "this--is--a--complete--sentence";
string[] tokens = str.Split(new[] { "--" }, StringSplitOptions.None);

Result:

[ “this”, “is”, “a”, “complete”, “sentence” ]

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents