Find and copy all

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
mcguire89
Posts: 2
Joined: Sun Feb 06, 2011 8:58 pm

Find and copy all

Post by mcguire89 »

I can't find it anywhere. If I write a REGEX to find say emails address domains, how can i then find all and copy them for further editing?

Bonus question - Is there a Textpad for dumies guide or manula floating around. I cant find one specific to this program.

Thanks in advance for your help.
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

You can use bookmarks to copy all the lines that contain the string or regular expression you're searching for.

In the Find dialog, click Mark All. Then click Edit > Copy Other > Bookmarked lines.

If you want just the matched expression itself, you can paste the lines into a new document and perform another Replace operation to remove any extraneous text on each line.

For information about regular expressions, see this post by ben_josephs.
mcguire89
Posts: 2
Joined: Sun Feb 06, 2011 8:58 pm

Post by mcguire89 »

The copy bookmarked lines I know..

I didn't know about the REGEX to delete all but target. I'll have to experiment with it, but it might be just what I am looking for.

thanks
Post Reply