Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Help wanted · · · – – – · · ·
    2
    2
    621
    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 Arlebrink
      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 Sumner 1 Reply Last reply Reply Quote 2
      • Scott Sumner
        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
        Copyright © 2014 NodeBB Forums | Contributors