code: public static List<String> getAllGroups(Pattern pattern, CharSequence content, boolean withGroup0) {
  		if (null == content || null == pattern) {
  			return null;
  		}
  
  		ArrayList<String> result = new ArrayList<>();
  		final Matcher matcher = pattern.matcher(content);
  		if (matcher.find()) {
  			final int startGroup = withGroup0 ? 0 : 1;
  			final int groupCount = matcher.groupCount();
  			for (int i = startGroup; i <= groupCount; i++) {
  				result.add(matcher.group(i));
  			}
  		}
  		return result;
  	}
docs: 获得匹配的字符串匹配到的所有分组
  
  @param pattern 编译后的正则模式
  @param content 被匹配的内容
  @param withGroup0 是否包括分组0，此分组表示全匹配的信息
  @return 匹配后得到的字符串数组，按照分组顺序依次列出，未匹配到返回空列表，任何一个参数为null返回null
  @since 4.0.13