Split Multiple character in C# -


i want split each words in string?

i write code

string s1=" welcome our website,thanku." string s2= s1.split(",-.".toarray()); 

but isn't working.

i believe want split on space, ,,. , -, try:

string[] splitarray = s1.split(',','-','.',' '); 

string.split returns array of string element, not single string element.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -