c# - How to call String.Split that takes string as separator? -


i have following string value: annualfee[[contactneeyear want split using separator : "[["

the msdn topic string.split says such function exists, used following code :

omatch.groups[0].value.split('[[');

but throws error saying:

can not implicitly convert string[] string

so how split string value separator : "[["

try below code, has worked me:

        string abc = "annualfee[[contactneeyear";          string[] separator = { "[[" };          string[] splitedvalues = abc.split(separator , stringsplitoptions.none); 

i hope you.. :):)


Comments

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

Admob integration with pygame in android -

.htaccess: Transfer name to index.php if not directory public -