I parse data all the time. You can do it. Start at the beginning of the string, look for the next slash after http://, if there isn't one start at the end of the string, if there is start at that slash. Word backwards until you find a period, that should be the .org, .net, .com., .tv, etc...