This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Hey guys,
I've got a list of different URLS and I need to extract the subdomain of each of the URL.
A subdomain would be anything between the third and fourth "/" character.
Example URLS:
1) https://www.community.alteryx.com/t5/forums/postpage/board-id/designer-discussions
2) https://www.lovealteryx.com/community/why-i-love-alteryx
In this example the subdomain output should be
1) t5
2) community
I'm guessing I need to use regex for this, but don't know how.
Anyone who can help me out?
With kind regards,
Lazzanova
Solved! Go to Solution.