Android Utililty Methods URL String Validate

List of utility methods to do URL String Validate

Description

The list of methods to do URL String Validate are organized into topic(s).

Method

booleanisValidUrl(String linkToCheck)
is Valid Url
Pattern urlPattern = Pattern
        .compile("^((https?:\\/\\/(www)?)|(www)).+(\\..{2,4})(\\/)?.+$");
Matcher urlMatcher = urlPattern.matcher(linkToCheck);
return urlMatcher.matches();
booleanisUrl(String s)
is Url
if (s == null) {
    return false;
return Pattern.matches(URL_REG_EXPRESSION, s);