private static String normalize(String wiki) {

        pattern = Pattern.compile("(\\[\\[[^\\|]*\\|)([^\\]]*)(\\]\\])", Pattern.UNICODE_CASE);
        matcher = pattern.matcher(wiki);
        while (matcher.find()) {
            wiki = wiki.replaceFirst("(\\[\\[[^\\|]*\\|)([^\\]]*)(\\]\\])", matcher.group(2));
        }
        wiki = wiki.replaceAll("<[^>]*>", "");
        wiki = wiki.replaceAll("[\\[\\]\\{\\}]", "");
        wiki = wiki.replaceAll("'''|''", "");

        return wiki.trim();
    }