Regular expression have a DOTALL mode (in most regex flavors expressed with s) that changes the behavior of . enabling it to match a newline (LF) symbol.