java取得URL顶级域名

String url = "http://anotherbug.blog.chinajavaworld.com/entry/4545/0/"; Pattern p = Pattern.compile("(?<=http://|\\.)[^.]*?\\.(com|cn|net|org|biz|info|cc|tv)",Pattern.CASE_INSENSITIVE); Matcher matche
相关文章
相关标签/搜索