Community
    • Login

    I need to filter out certain strings from a large file.

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 874 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.
    • Magnus ArlebrinkM
      Magnus Arlebrink
      last edited by

      I have a large file with usernames in it. I need to filter out the usernames.
      File is full of information and and i need to search and filter out all strings that matches regex “Userid\sb\id\w\w\w”
      Searching is fine, but how I can get rid of all the other text is the issue…anyone?

      Scott SumnerS 1 Reply Last reply Reply Quote 2
      • Scott SumnerS
        Scott Sumner @Magnus Arlebrink
        last edited by

        @Magnus-Arlebrink

        It’s tough to say without seeing examples of this “other text”…

        Another idea is to approach it differently. You say you have no problems matching the text you need to keep while searching, so a possible option would be to “simply” copy that text to another file. If isn’t extremely simple because Notepad++ can’t do that natively, but if you redmark your text you can copy it to the clipboard with a script; see here.

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