bug in regexp to allow parsing also in linux where not additional chars ar added to the end of line