I have written a function that validates as string as a web url. Unfortunately, new top level domains like ".koeln" and ".cologne" and ".shop", etc are not yet supported using Patterns.WEB_URL.
Does anybody know how to add these domains or what should be done to make them update the Patterns class?
boolean validate(final String url){
Pattern pattern = Patterns.WEB_URL;
Matcher matcher = pattern.matcher(url);
return matcher.matches();
}
Here is a list of all (?) TLDs including the new ones I am referring to: