private boolean isValid(String urlString)
{
try
{
URL url = new URL(urlString);
return URLUtil.isValidUrl(urlString) && Patterns.WEB_URL.matcher(urlString).matches();
}
catch (MalformedURLException e)
{
}
return false;
}
手机扫一扫
移动阅读更方便
你可能感兴趣的文章