I can't read Java, I need an answer in Kotlin and I have read a thread in here: Get domain name from given url
say for example I have a string like this: "http://www.myWebsite.com/profile"
then how to programmatically get the domain name only in string like this "myWebsite.com"
?