Use splitlines() instead of regexp (fixes #25)