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

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -