• Login
Community
  • Login

Delete lines in multiple text/DAT files that contain specific characters

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 265 Views
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.
  • A
    Adam Bowsky
    last edited by Jan 21, 2020, 5:06 PM

    Re: Delete lines in multiple text/DAT files that contain specific characters

    Hello,

    I have been using this process since you were kind enough to help me, and just notices that I am running into a problem with this expression: \r\n\s+\d{1,4}N90-.*\s+00000000$. in addition to deleting the line that has the N90- with a , it is also deleting the line above it. For example, the line above was deleted in addition to the line that I wanted to delete. This is happening on every file where N90- is present. Do you have any idea why this is happening?

          10DTP-1040K           00000000  This should not have been deleted, but was.
          10N90-SS7784X         00000000 This was deleted correctly.
    
    A 1 Reply Last reply Jan 21, 2020, 6:00 PM Reply Quote 0
    • A
      Alan Kilborn @Adam Bowsky
      last edited by Jan 21, 2020, 6:00 PM

      @Adam-Bowsky

      Is there any great reason you’ve posted the exact same thing THREE times?

      A 1 Reply Last reply Jan 21, 2020, 7:09 PM Reply Quote 0
      • A
        Adam Bowsky @Alan Kilborn
        last edited by Jan 21, 2020, 7:09 PM

        @Alan-Kilborn Apologies… I am not experienced with this.

        1 Reply Last reply Reply Quote 0
        2 out of 3
        • First post
          2/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors