KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What I want I want to get from a URL the domain part so from http://example.com/ -> example.com Examples: +----------------------------------------------+-----------------------+ | input | output | +----------------------------------------------+-----------------------+ | http://www.stackoverflow.com/questions/ask | www.stackoverflow.com | | http://validator.w3.org/check | validator.w3.org | | http://www.google.com/?q=hello | www.google.com | | http://google.de/?q=hello | google.de | +----------------------------------------------+-----------------------+ I found some related questions in stackoverflow but none of them was exactly what I was looking for. Thanks for any help!
Tags (comma-separated)
Save Edits
Cancel