regular expressions over multiple lines
\r\n newlines in reading and writing