Pattern pattern = Pattern.compile("\\du\\d\\d{0,1}_x(32|64)");
Matcher matcher = pattern.matcher("windows_6u31_x32.jar");
System.out.println(matcher.group(0));
I'm trying to match the string "6u31_x32" and extract that but when I use this regex it fails for some reason. It throws "No match found".
I've tried going into debug mode and it can't seem to extract that specific part of the string. What am I doing wrong? Is my regex wrong? It seems to match on all the online regex builders/testers I've tried on.