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