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