if (all) { // all matches
Regsub rs = new Regsub(r, value);
StringBuffer counter = new StringBuffer();
while(rs.nextMatch()) {
matches++;
props.put(prefix + matches, rs.matched());
for (int i = 1; i < subMatches; i++) {
String s = mapTable.length >= i ? mapTable[i-1] : "" + i;
props.put(prefix + matches + "." + s,
(rs.submatch(i)==null ? nullStr : rs.submatch(i)));
}