I think you spotted a bug there, because it shouldn't be just the first newline. But if I remember correctly, the reason for doing this is to make it easier to match regular expressions within a single line rather than over multiple lines.