Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7757

    jackrabbit
    Member

    Hi all,

    I want to do the following.

    1. Search a keyword in a file
    2. Mark all the lines that contains this keyword.
    3. Delete all these lines.

    I know some other tools allow users to mark all the lines that contain a specific keyword, then users can delete all the marked lines.

    Can EmEditor do it?

    Thanks.

    #7770

    ToadLoadin
    Member

    I guess it can be implemented with find & replace using regular expression, but I’m not good at it. 🙁

    #7774

    gan
    Participant

    Could easily be done with regular expression.

    Could search for:

    ^.*keyword.*n

    and replace with nothing. That should remove all lines that contain the word “keyword”. Just change “keyword” into whatever you would like to search for.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Share with friends... Tweet about this on TwitterShare on FacebookShare on Google+Email this to someone