On Wed, Jan 26, 2011 at 06:31:31AM -0600, Doug Pinkerton wrote:
> I need to extract email addresses from a file. Fortunately, the email
> addresses are in angle brackets <[email protected]>. 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?

I don't like doing things in two steps when I can do them in one. :)

Instead of trying to match what you don't want and replace with nothing,
think about matching everything and replace with what you want.

Find
[^<]*<([^>]*)>[^<]*

Replace
\1\r

Ronald

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to