Let's see how we can find and replace CR (Carriage Return) and LF (Line Feed) characters from a file using Notepad++ application on the Windows operating system.
First let's see what their characters are,Carriage Return (CR): Also know as Cartridge return,
It is a control character used to reset the position of the cursor to the beginning of the next line of a text file.
Symbol : ↵
Unicode : U+21B5
HTML Entity : ↵
ASCII : 13
Programming Languages: \r
Note: It is also known as Control+M character and may be seen as ^M
Line Feed (LF): Also known as Newline Character or End Of Line Character (EOF) or line break. It is a special character used to signify the end of a line of text and the start of a new line in a file.
Symbol : 
Unicode: U+000A
HTML Entity :
ASCII: 10
Programming Languages: \n
CRLF Relation:
Carriage return and Line feed are very much associated with each other and hence you would see both of them clubbed together as CR+LF or LF+CR, CRLF or LFCR
How to find CRLF characters using Notepad++You can use a regular expression to find CRLF character,
- Open file in Notepad++
- Goto Find,
- Make sure that in Search Mode, the Regular Expression option is selected.
- In "Find what" add regular expression [\r\n]+
- Now you should see CRLF characters highlighted.
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!