+ 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
1 Réponse
+ 1
Have a look at split
https://www.dotnetperls.com/split
Indexof
https://www.dotnetperls.com/indexof
Substring
https://www.dotnetperls.com/substring