Pattern WIKI_LINK_PATTERN = Pattern.compile("\\[\\[[^\\]]*[^\\]]*\\]\\]");
Matcher m = WIKI_LINK_PATTERN.matcher(content);
List links = new ArrayList();
while(m.find()) {
String link = content.substring(m.start(), m.end());
if (!link.startsWith("[[Image:") && !link.startsWith("[[Media:") &&
(link.indexOf("http://") == -1) && (link.indexOf('&') != -1) ) {
testOut("Migrate ampersand in: "+link);
links.add(link); // no image, link has '&'
}