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