regmatch_dup
fname = regmatch_dup(&m[2], buf);
char *regmatch_dup (regmatch_t * m, const char *src);
s = regmatch_dup (m, src);