Hi guys
I have this string 'C:\Web Configs\SERVER1\WConfig\d\Inetpub\Wwwroot\WEB_APP\eGAV\WebPartsWeb\ACF.Servico.eAv.Web_20081010\web.config'.
I need to store 'C:\Web Configs\SERVER1' to one variable.
Store 'SERVER1' to another variable.
d\Inetpub\Wwwroot\WEB_APP\eGAV\WebPartsWeb\ACF.Servico.eAv.Web_20081010\web.config' to another one. In this last i need to replace the first / by :
Can anyone help me please
Help wiht string split
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

meli19 reputationPosted May 27, 2009, 8:36 AM EDT
Hi Ricardo, try this:
string [] str = yourstring.Split('\");
then rebuild your string in different variable, for example:
string var1=str[0] + "\" + str[1] + "\" + str[2];
You got the idea.
Mel