Is there a way to get the main site text on a string.
Strings
string site1 = "https://www.google.com/xxxxxxxx";
string site2 = "https://www.youtube.com/xxxxxxxxx";
Getting Result should be
string getsite1 = "https://www.google.com";
string getsite2 = "https://www.youtube.com";