What is the difference between \r and \n in a regular expression?

Can someone explain it with an example?

Edit
Report