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

Use of req.query, req.params and req.body in NODE JS

How to capture finger prints in java