private static Set<URL> getAbsoluteURLsByRegex(URL url, String elementIdOrRegex) throws Exception {
		Set<URL> urlSet = new HashSet<URL>();
		String reg = elementIdOrRegex.substring(1);
		HttpFetchResult fetchResult = httpClient.requestHttpGet(url);
		if (fetchResult != null && fetchResult.getHtml() != null) {
			List<String> extractedList = StringUtils.regexExtractor(fetchResult.getHtml(), reg);
			for (String partUrlStr : extractedList) {
				int i = url.getPath().lastIndexOf(URL_PREFIX);
				String path = url.getPath().substring(0, i);
				String hostAndPath = url.getHost();
				if (!partUrlStr.contains(path)) {
					hostAndPath = url.getHost() + URL_PREFIX + path;
				}
				String fullStr = fixAbsoluteLink(partUrlStr, hostAndPath, url.getProtocol());
				if (fullStr != null && !fullStr.isEmpty()) {
					urlSet.add(URL.valueOf(fullStr));
				}
			}
		}
		return urlSet;
	}