Do we also need to search for \r? 

http://en.wikipedia.org/wiki/Newline#In_programming_languages