private boolean isUrl(String url) {
		String regex = "((([A-Za-z]{3,9}:(?://)?)(?:[\\-;:&=\\+\\$,\\w]+@)?[A-Za-z0-9\\.\\-]+|(?:www\\.|[\\-;:&=\\+\\$,\\w]+@)[A-Za-z0-9\\.\\-]+)((?:/[\\+~%/\\.\\w\\-_]*)?\\??(?:[\\-\\+=&;%@\\.\\w_]*)#?(?:[\\.\\!/\\\\\\w]*))?)";
		
		if (Pattern.compile(regex).matcher(url).find()) return true;
		
		for (String s : endings) {
			if (url.contains(s)) return true;
		}
		return false;
	}