Thanks, Ted. But that doesn't work as the first step results in lines starting with commas. The file pattern is like this:
John Doe <john....@domain.com>, Bill Smith <bill.sm...@domain.com>, Jim Jones <jim.jo...@domain.com> ... and so forth. There are 170 entries on a single line. I've done it before by replacing [, ] with \r to break it into separate lines, and then trimming the lines from there. But since the email addresses are so conveniently bracketed, I was just wondering if everything not in brackets could be eliminated in a single step. *********************************************************** On Jan 26, 2011, at 8:03 AM , Ted Burger wrote: 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 *********************************************************** 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? -- 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>