write regex to split data file into arrays