string myfather = "Wow, no, Wow";
myfather = myfather.Replace("Wow", "");
//how to make the result ", no, Wow"
how to make the result ", no, Wow"
string myfather = "Wow, no, Wow";
myfather = myfather.Replace("Wow", "");
//how to make the result ", no, Wow"
how to make the result ", no, Wow"
As the two other guys giving an answer didn't look in the title (He says first word, not "Wow"), you can do it like this (But please google it for future quest first, before you post it here):
string myfather = "Wow, no, Wow";
int x = 0;
foreach (char c in myfather)
if (c == ',' || c == ' ')
break;
else
x++;
myfather = myfather.Substring(x);
Like suggested before, but without the need to define anything else:
string myfather = "Wow, no, Wow";
myfather=myfather.Remove(0, "Wow".Length);