\n = Matches a new line
\r = Carriage return
Below is an example:
Text: an anaconda ate Anna Jones
Regex: \w+\r\n
Match: ate
Depending on your operating system you might have to combine the \r and \n character escapes to create the correct new line sequence for your platform. For Microsoft Windows systems you should generally use \r\n which is a carriage return then line feed (CRLF). To simply match the end of a line or string use the dollar sign ($).
Souce: from from what I read about Regex.