Android examples for java.util.regex:URL Pattern
is Valid Url by regex
//package com.java2s; import android.util.Patterns; public class Main { public static boolean isValidUrl(final CharSequence target) { return target != null && Patterns.WEB_URL.matcher(target).matches(); }//from ww w. ja v a2 s . c om }