LinkedHashMap<Matcher, Long> compiledBrowserMatcherMap =
new LinkedHashMap<Matcher, Long>(browserRegMap.size());
for (Map.Entry<String, Long> entry : browserRegMap.entrySet()) {
Pattern pattern = new Pattern(entry.getKey(), Pattern.IGNORE_CASE | Pattern.DOTALL);
compiledBrowserMatcherMap.put(pattern.matcher(), entry.getValue());
}
return compiledBrowserMatcherMap;
}
/**