C# string split
c#, split, string
Solution
I'm guessing you either want to extract the domain name or the TLD part of the string. This should do the job:
var str = "google.com 220 USD 3d 19h";
var domain = str.Split(' ')[0]; // google.com
var tld = domain.Substring(domain.IndexOf('.')) // .com
Problem
I have a string = "google.com 220 USD 3d 19h". I want to extract just the ".com" part....... whats the easiest way to manipulate the split string method to get this result?