问题描述
http://www.codeproject.com/Questions/ask.aspx ==> http://www.codeproject.com
http://t.codeproject.com/Questions/ask.aspx ==> http://www.codeproject.com
http://news.codeproject.com/Questions/ask.aspx ==> http://www.codeproject.com
http://news.codeproject.com.cn/Questions/ask.aspx ==> http://www.codeproject.com.cn
以上是示例,我想获取顶级域名.
===
使用uri类,我仅获得2〜4以上的子级别域.
http://www.codeproject.com/Questions/ask.aspx ==> http://www.codeproject.com
http://t.codeproject.com/Questions/ask.aspx ==> http://www.codeproject.com
http://news.codeproject.com/Questions/ask.aspx ==> http://www.codeproject.com
http://news.codeproject.com.cn/Questions/ask.aspx ==> http://www.codeproject.com.cn
Above is example,I want to get the top level domain.
===
use the uri class I just get the sub level domain for above 2~4 example
推荐答案
这篇关于如何轻松获得顶级域名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!