string input ="xxx @ yyy @ zzz@";
input.repalce("@",1);
the code will repalce all matchs on the string and I want only the
first
you should identify the first position an then remove the char like
this:
string input = "xxx @ yyy @ zzz@";
int pos = input.IndexOf('@');
if (pos > 0)
{
input = input.Remove(pos, 1);
}
Sascha