char* found[256+1] = {0}; memcpy(found, &text[rx_match[0].rm_so], &text[rx_match[0].rm_so] - &text[rx_match[0].rm_eo]);