Use the following code to get the link, there are two parentheses, take the second one
List<String> ls=new ArrayList<String>(); Pattern pattern = Pattern.compile("<img id=\"J_StandardCode_m(.*?)data-src=\"(.*?)\""); Matches matches = pattern.matcher (managers); while(matcher.find()) ls.add(matcher.group(2)); return ls.get(0);
[ ] matches only the characters in square brackets
() grouping, and the characters in parentheses are treated as a whole.