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

Popular posts from this blog

What is NBioBSP Java Library?

Draw arrow line example

Capture image from webcam java code, examples