return matched.length() == 0 ? null : matched;
return matched.length() == 0 ? ((match.group(group - 1).length() == 0) ? null : "") : matched;
  private static String getURIGroup(Matcher match, int group)  {    String matched = match.group(group);    return matched.length() == 0 ? null : matched;  }