(? Я)\. Adnxs\.com? регулярное выражение не совпадает?
public class RegexeFindText {
public static void main(String[] args) {
//regex pattern is not getting matched
Pattern pattern = Pattern.compile("(?i)\\.adnxs\\.com");
Matcher match = pattern.matcher("acdn.adnxs.com");
System.out.println(match.matches());//false
}
}