I have a string like this:
string val = \"123-12-1234\";
How can I replace the dashes using an empty string in C#.
I mean val
I have a latin version of the code of Razvan Dumitru because us use a million indicator even. Offcourse I use a double replace :D
public static string CleanNumb(string numb)
{
foreach (char c in ".,'´")
numb = numb.Replace(c, ' ');
return numb.Replace(" ", "");
}
This seems too simple, but:
val.Replace("-","");