text - Splitting a string in C#, why is this not working? -
i have following string:
string mystring = " objective test.\vvision\v* deliver test goals\v** comprehensive\v** control\v* alignment cross-equities strategy\vapproach\v*an acceleration "
and trying split on "\v"
i tried doesn't seem work:
char[] delimiters = new char[] { '\v' }; string[] split = mystring.split(delimiters); (int = 0; < split.length; i++) { }
split.length
shows 1. suggestions?
use this
string[] separators = {@"\v"}; string value = @"the objective test.\vvision\v* deliver test goals\v** comprehensive\v** control\v* alignment cross-equities strategy\vapproach\v*an acceleration"; string[] words = value.split(separators, stringsplitoptions.removeemptyentries);
Comments
Post a Comment