is You Tube URL - Android Network

Android examples for Network:URL

Description

is You Tube URL

Demo Code


//package com.java2s;

public class Main {
    public static boolean isYouTubeURL(String url) {
        return url
                .matches("http[s]://www\\.youtube\\.[a-z]{2,3}(\\.[a-z]{2})?/.*");
    }//from w  w w . j a  v a2 s. co  m
}

Related Tutorials