Given a vector of TXT records, this function will return a list of vectors of all the SPF records for each. If the given TXT record is not an SPF record, NA is returned (which makes it easy to skip with purrr functions).

split_spf(spf_rec)

Arguments

spf_rec

a character vector of DNS TXT records