- AuthorPosts
- August 14, 2007 at 9:08 am #4541
user
Participanthello
can you tell me please how to:
1) select all lines containing a string
2) select all lines NOT containing a stringthanks
August 14, 2007 at 1:31 pm #4543me75
MemberIf it can copy or delete all “find highlight”,you can.
:DAugust 17, 2007 at 3:20 pm #4567user
Participantsorry didnt got it
I said ‘lines’
August 17, 2007 at 8:24 pm #4569Yutaka Emura
Keymasteruser wrote:
hellocan you tell me please how to:
1) select all lines containing a string
2) select all lines NOT containing a stringthanks
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=169August 31, 2007 at 6:42 am #4611user
ParticipantI 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)
September 3, 2018 at 2:21 pm #23655Michael 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
September 4, 2018 at 5:13 am #23656Mr KT
ParticipantI 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 lines2) 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 linesShould be trivial to create macro for these.
September 4, 2018 at 8:07 am #23657Yutaka Emura
KeymasterHello,
You can also use the Filter feature to do just these, and so these macros are not necessary anymore.September 4, 2018 at 9:17 am #23658Michael Beijer
ParticipantWow, thanks!
- AuthorPosts
- You must be logged in to reply to this topic.