use regex to split lines as the might use \r or \n