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;
        }
    }

Comments

Recent Post

Recent Posts Widget

Popular posts from this blog

Capture image from webcam java code, examples

Shallow Copy Deep Copy Java example

Database Connection using NODE JS example