code: public String getText(final String toTest, final int group) {
          Matcher m = pattern.matcher(toTest);
          StringBuilder result = new StringBuilder();
          while (m.find()) {
              result.append(m.group(group));
          }
          return result.toString();
      }
docs: Extract exact group from string
  
  @param toTest - string to extract from
  @param group  - group to extract
  @return extracted group
  @since 1.1