better regex for spliiting lines in stream