This was particularly confusing when reading a file with Windows line endings. The CR would become part of the regex.