regex now reads in all lines successfully