Hi, I would do this in two steps.
1) find: <|> replace with \r 2) Process lines containing (with "copy to new document") ^[^@]+@[^@]+$ To make this a one-step-action: put it in a text factory ;-) Regards, Roland Am 26.01.2011 um 15:19 schrieb Ted Burger: > Oops should have been: > > Doug, > > Without seeing the source file it is a bit tricky to help. > > Do it in a couple of steps. > In BBedit search > Replace all > with a CR (backslash r) > Replace all ^.*< with nothing using grep > > Thanks, > Ted > *********************** Ted Burger **************************** > t...@tobsupport.com ********* www.tobsupport.com > > On Jan 26, 2011, at 9:03 AM, Ted Burger wrote: > >> Chris, >> >> Without seeing the source file it is a bit tricky to help. >> >> Do it in a couple of steps. >> In BBedit search >> Replace all > with a CR (backslash r) >> Replace all ^< with nothing using grep >> >> Thanks, >> Ted >> *********************** Ted Burger **************************** >> t...@tobsupport.com ********* www.tobsupport.com >> >> On Jan 26, 2011, at 8:41 AM, Doug Pinkerton wrote: >> >>>>> On Jan 26, 2011, at 06:31, Doug Pinkerton wrote: >>>>> I need to extract email addresses from a file. Fortunately, the email >>>>> addresses are in angle brackets <doe.j...@domain.com>. I have no problem >>>>> matching that pattern. But I need to match everything BUT that pattern >>>>> and replace with nothing, so that only the email addresses remain. How do >>>>> I perform a DOES NOT EQUAL search? >>>>> >>> *********************************************************** >>>> On Jan 26, 2011, at 6:56 AM , Christopher Stone wrote: >>>> Hey Doug, >>>> >>>> The easy way to do that is to use 'Process Lines Containing...' from the >>>> 'Text' menu. >>>> >>>> Find: <[^@]+@[^@]+> >>>> >>>> Choose 'Copy to new document' and you're set. >>>> >>>> -- >>>> Best Regards, >>>> Chris >>> >>> *********************************************************** >>> >>> Thanks, Chris. Unfortunately, the email addresses are not on lines by >>> themselves, so "Process lines containing..." copies all of the data on the >>> line. The result is simply a copy of the original document. Strictly >>> speaking, although I view it with soft wrap, it's all one line, since there >>> are no returns in this document. Any other suggestions? >>> >>> -- >>> You received this message because you are subscribed to the >>> "BBEdit Talk" discussion group on Google Groups. >>> To post to this group, send email to bbedit@googlegroups.com >>> To unsubscribe from this group, send email to >>> bbedit+unsubscr...@googlegroups.com >>> For more options, visit this group at >>> <http://groups.google.com/group/bbedit?hl=en> >>> If you have a feature request or would like to report a problem, >>> please email "supp...@barebones.com" rather than posting to the group. >>> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit> >> >> -- >> You received this message because you are subscribed to the >> "BBEdit Talk" discussion group on Google Groups. >> To post to this group, send email to bbedit@googlegroups.com >> To unsubscribe from this group, send email to >> bbedit+unsubscr...@googlegroups.com >> For more options, visit this group at >> <http://groups.google.com/group/bbedit?hl=en> >> If you have a feature request or would like to report a problem, >> please email "supp...@barebones.com" rather than posting to the group. >> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit> > > -- > You received this message because you are subscribed to the > "BBEdit Talk" discussion group on Google Groups. > To post to this group, send email to bbedit@googlegroups.com > To unsubscribe from this group, send email to > bbedit+unsubscr...@googlegroups.com > For more options, visit this group at > <http://groups.google.com/group/bbedit?hl=en> > If you have a feature request or would like to report a problem, > please email "supp...@barebones.com" rather than posting to the group. > Follow @bbedit on Twitter: <http://www.twitter.com/bbedit> -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>