Hi, how can I get the root domain of an url using regex? For example, I have a list of urls like facebook.com/test/ and I want to get only facebook.com
I tried using regex for the extensions of the url, but I was unable to create a regex that will grab the portion of text ending in .com or .net or .org
How do you put in regex if A or B or C appears? Thanks
I tried using regex for the extensions of the url, but I was unable to create a regex that will grab the portion of text ending in .com or .net or .org
How do you put in regex if A or B or C appears? Thanks