topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 1:55 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: text editor question  (Read 7162 times)

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
text editor question
« on: October 28, 2009, 06:19 AM »
hello

I want to search with regex for specific text and select all the instances and copy them to paste them in another text file

I don't know how to do it, emeditor does not offer that option

any idea?

thanks

mwb1100

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,645
    • View Profile
    • Donate to Member
Re: text editor question
« Reply #1 on: October 28, 2009, 09:26 AM »
UltraEdit can do this - in the Find dialog select the "List Lines Containing String" option.  The resulting dialog will contain a list of matching strings that can be copied to the clipboard.

Of course, for this type of operation I'd normally use a command-line grep too and just pipe the output to a file.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: text editor question
« Reply #2 on: October 28, 2009, 10:00 AM »
I use LineByter, free for personal use, made by a DonationCoder member. more info here:
https://www.donation...ex.php?topic=14381.0

It may be a bit of overkill for your needs -- it's quite powerful and perfect for extracting regular expression matched strings from a file (like email addresses, etc.).

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,149
    • View Profile
    • Donate to Member
Re: text editor question
« Reply #3 on: October 28, 2009, 10:12 AM »
Hi kalos,

EmEditor can't do that? I was thinking this is an such common task every editor should be able to do that?

I use www.HippoEDIT.com and he does it (see picture).
You can collect to "Output pane" or to an new document.
Find_and_Collect01_c200.pngtext editor question

Well, there is room for improvement, but the author knows and will do this.
If you have more question you can ask there in the forum too (without he hassle to register first.)

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
Re: text editor question
« Reply #4 on: October 28, 2009, 11:09 AM »
I downloaded hippoedit, while it has "find all" it doesn't allow me to "select all" and copy all selected

or do I miss something?

mwb1100

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,645
    • View Profile
    • Donate to Member
Re: text editor question
« Reply #5 on: October 28, 2009, 01:59 PM »
BareGrep is another free tool that'll do the trick, though it wasn't 100% intuitive (at least for me).  Get the search you want then go to the "File/Export..." menu item and use that dialog to configure exactly what you want to be put onto the clipboard (or sent to a file).

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: text editor question
« Reply #6 on: October 28, 2009, 02:12 PM »
you should really give linebyter a try :)
download from http://www.softpedia...Download-106558.html

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
Re: text editor question
« Reply #7 on: October 28, 2009, 03:29 PM »
you should really give linebyter a try :)
download from http://www.softpedia...Download-106558.html

I downloaded, there is no GUI for that? I run the .exe and an empty cmd window appeared

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: text editor question
« Reply #8 on: October 28, 2009, 03:50 PM »
certainly not, its a full setup program and then the application itself has a very nice gui (see https://www.donation...ex.php?topic=14381.0 )

Tuxman

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,466
    • View Profile
    • Donate to Member
Re: text editor question
« Reply #9 on: October 28, 2009, 06:36 PM »
I presume Vim could also do it ...  :D

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,149
    • View Profile
    • Donate to Member
Re: text editor question
« Reply #10 on: October 29, 2009, 02:55 AM »
I downloaded hippoedit, while it has "find all" it doesn't allow me to "select all" and copy all selected
As i show you in my above post: you can redirect all found lines to an new document/tab.
There you can select all (CTRL+A) and copy it to the clipboard (CTRL+C).

Right now the file name and position where this content was found is included in the output too.
But here one can simple do an rectangle block selection and delete this before CTRL+A/C.

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
Re: text editor question
« Reply #11 on: October 29, 2009, 09:27 AM »
certainly not, its a full setup program and then the application itself has a very nice gui (see https://www.donation...ex.php?topic=14381.0 )

clicking the link at the bottom of this webpage, it downloads a 227KB instead of the 880KB file, can you inform the author about this? (I hope it is not a virus...)

PS: I tested it, it works nice, but it is sooo slow, while emeditor instantly highlights (with green) the found matches (unfortunately it doesn't select them)
« Last Edit: October 29, 2009, 10:31 AM by kalos »