}
if (matches>0) {
props.put(prefix + "submatches", "" + subMatches);
props.put(prefix + "matchlist", counter.toString());
}
} else if (r.match(value, sub)) { // first match
for (int i = 0; i < sub.length; i++) {
if (sub[i] == null) {
sub[i] = "";
}
props.put(prefix + i, sub[i]);