Menu

Regex command for deleting and replacing

Help
2018-01-12
2018-01-13
  • Martin Hrebik

    Martin Hrebik - 2018-01-12

    Hello. Could please someone write a regex command to completely delete this:

    4512) SOME NAME
    Unused 4512
    

    So nothing is left? Not even empty line?

    And another thing. I need to make this:

    4875) SAME NAME
    Used
    7854) ANOTHER NAME
    Used
    74) NAME
    Used
    1) YET ANOTHER NAME
    Used
    

    Into this:

    4875|7854|74|1

    So I can just add "Unused (" at the start and ")" at the end to use it later in different text file to sort of compare used line's IDs.
    So I'll just search for:

    Unused (4875|7854|74|1)

    Thank you very much.

     

    Last edit: Martin Hrebik 2018-01-12
  • Sasumner

    Sasumner - 2018-01-13

    I think you're in the wrong place to ask this question.

     
  • Martin Hrebik

    Martin Hrebik - 2018-01-13

    Oh. I'm sorry. I did ask for a notepad++ regex command earlier here and someone helped me so I though I could ask again. But I did get help in another forum.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.