+ 1

How to trim one letter before dot (.)?

static void Main(string[] args) { string MyString = "T.Kidman, N.Cruise"; MyString = MyString.Replace(".",""); Console.WriteLine(MyString); } I only made to erase dot, but I need to trim letter before dot too in both names

20th Sep 2018, 2:10 PM
Shaitzu15
Shaitzu15 - avatar
1 Respuesta
20th Sep 2018, 2:48 PM
sneeze
sneeze - avatar