How to find a Line Feed(LF) without Carriage Return(CR) after every line
-
Newbie Question -
I have hundred thousand row record data export from database as text file.
I want to find a line just have only Line Feed(LF) to correct missing Carriage Return(CR) after every lineHow can I accomplish this?
/Neo
-
welcome to the notepad++ community, @Aditep
if you want to automatically correct/convert all mixed line feeds to cr+lf only:
- first go to
edit > eol conversion > macintosh (cr). - then go to
edit > eol conversion > windows (cr lf)
note: it is similar if you want to convert a document to lf line feeds only.
just switch to any other line feed format and then back to the one you desire. - first go to
-
if you prefer to do all conversions manually, using your notepad++ find window, and want to find all lines with a missing cr only (for e.g. manual control purposes):
open your find window and paste/set the following:
find what:^(.*?|^\r)\n
search mode: “regular expression”
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login