regsub_copy
regsub_copy(&buf, &len, text, start, end);
regsub_copy(buf, len, text, m[i].rm_so,
regsub_copy(&buf, &len, text, last, m[0].rm_so + start);