-4

I want to replace the string Prab\A\kar to Prab\kar I have tried like this

string temp = @"prab\A\kar";
temp = temp.Replace(@"\A\", @"\");

and i got as "prab\\kar". As i mentioned in the title I want it as "Prab\kar"

rk_sweetrascal
  • 260
  • 1
  • 3
  • 11

1 Answers1

1
temp = temp.Replace(@"\A\", @"\");
Tim Schmelter
  • 450,073
  • 74
  • 686
  • 939