Infolinks In Text Ads

Jul 23, 2010

check valid URL for sitemaps in java code examples

How to check valid URL for sitemaps in java code, Examples

private boolean isValidMyUrl(String input) {
        Pattern p = Pattern.compile("[^A-Za-z0-9. ,@_$-]+");
        Matcher m = p.matcher(input);
        boolean result = m.find();
        if (result) {
            return false;
        } else {
            return true;
        }
    }

No comments:

Post a Comment

LinkWithin

Related Posts Plugin for WordPress, Blogger...