Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #4541

    user
    Participant

    hello

    can you tell me please how to:

    1) select all lines containing a string
    2) select all lines NOT containing a string

    thanks

    #4543

    me75
    Member

    If it can copy or delete all “find highlight”,you can.
    :D

    #4567

    user
    Participant

    sorry didnt got it

    I said ‘lines’

    #4569

    Yutaka Emura
    Keymaster

    user wrote:
    hello

    can you tell me please how to:

    1) select all lines containing a string
    2) select all lines NOT containing a string

    thanks

    Did you try these macros?

    http://www.emeditor.com/modules/mydownloads/singlefile.php?cid=8&lid=170
    http://www.emeditor.com/modules/mydownloads/singlefile.php?cid=8&lid=169

    #4611

    user
    Participant

    I have tried them and they dont do what I need

    they just create a new text file with the lines that contain or not a string

    I want to SELECT the lines that contain or not a specific string

    and then either copy them, or DELETE them, preserving the structure of the document (preserving newlines, etc)

    #23655

    Michael Beijer
    Participant

    @Yutaka: Those two links are dead, but I would love to try them out as I need to extract all lines in my text file containing a period (.).

    Michael

    #23656

    Mr KT
    Participant

    I typically use bookmarks for this scenario.

    1) select all lines containing string
    a. use the Find dialog box to search for string, click bookmark button
    b. Edit menu – bookmarks – Selected bookmarked lines

    2) select all lines NOT containing string
    a. use the Find dialog box to search for string, click bookmark button
    b. Edit menu – bookmarks – Invert bookmarks
    c. Edit menu – bookmarks – Selected bookmarked lines

    Should be trivial to create macro for these.

    #23657

    Yutaka Emura
    Keymaster

    Hello,
    You can also use the Filter feature to do just these, and so these macros are not necessary anymore.

    #23658

    Michael Beijer
    Participant

    Wow, thanks!

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

You must be logged in to reply to this topic.