What is the difference between \r and \n?

Posted by Sam Lee on Stack Overflow See other posts from Stack Overflow or by Sam Lee
Published on 2009-08-14T19:37:23Z Indexed on 2010/05/29 21:02 UTC
Read the original article Hit count: 191

Filed under:

How are \r and \n different. I think it has something to do with Unix vs. Windows vs. Mac, but I'm not sure how exactly they're difference, and which to search for/match in regexes.

© Stack Overflow or respective owner

Related posts about char