P
pengb
Hello All:
A pretty frustrating question to ask! I use the string [] something
= stringx.split (delimiter.tochararray()) mathod to delimit a long
string by space! So supposely
if the stringx is :
" something something1 something2 " I should get string [0] =
something, string[1] = something1...etc
However question comes what happens if the string looks like this
" something something1 something 2"
instead of string [0] = something, string[1] = something1...
I get string [0] = something string[1] = "" string[2] =
""........string[11] = something1....etc
In excel there is a function in text delimiter to treat all similar
delimiter as one. I just wondering how to do that in C#?
Thank You For your reply!
A pretty frustrating question to ask! I use the string [] something
= stringx.split (delimiter.tochararray()) mathod to delimit a long
string by space! So supposely
if the stringx is :
" something something1 something2 " I should get string [0] =
something, string[1] = something1...etc
However question comes what happens if the string looks like this
" something something1 something 2"
instead of string [0] = something, string[1] = something1...
I get string [0] = something string[1] = "" string[2] =
""........string[11] = something1....etc
In excel there is a function in text delimiter to treat all similar
delimiter as one. I just wondering how to do that in C#?
Thank You For your reply!