Community
    • Login

    How to find a Line Feed(LF) without Carriage Return(CR) after every line

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    crlfcarriage returnfindsearch
    3 Posts 2 Posters 11.1k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • AditepA Offline
      Aditep
      last edited by

      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 line

      How can I accomplish this?

      /Neo

      for example i have capture a part of a text file here

      Meta ChuhM 2 Replies Last reply Reply Quote 0
      • Meta ChuhM Offline
        Meta Chuh moderator @Aditep
        last edited by Meta Chuh

        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.

        1 Reply Last reply Reply Quote 4
        • Meta ChuhM Offline
          Meta Chuh moderator @Aditep
          last edited by Meta Chuh

          @Aditep

          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”

          1 Reply Last reply Reply Quote 3

          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
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors