Kibana painless scripted fields and regex - Only the first created works

The second and third fields are looking for the REGEX CPC_APMAC_.+. and CPC_APNAME_.+. but the matches that you are trying to find do not have any . in their values. Try just matching for CPC_APMAC_ and CPC_APNAME_ in the REGEX.