How to trim one letter before dot (.)? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
20th Sep 2018, 2:48 PM
sneeze
sneeze - avatar