resub
static int resub(regex_t *, regmatch_t *, char *, char *, char *, char *);
if ((res = resub(&(pt->rcmp),pm,inpt,pt->nstr,outpt,endpt))