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