Changed regex pattern to allow for CRLF line endings.