What is the difference between \\r and \\n in a regular expression?
\\r
\\n
Can someone explain it with an example?
\n is linefeed
\n
\r is carriage return
\r
In windows, for example, line endings are \r\n. In the vast majority of other operating systems, they are \n.
\r\n