tweaks to individual regex function - split on end of line during file read