26 jan 2011 kl. 14.41 skrev Doug Pinkerton: >>> 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 <[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? >>> > *********************************************************** >> 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? >
A simpleminded solution, but you could always add those line breaks first by searching for \[ and replacing with \r\[ and \] replacing with \]\r respectively... /Cai -- 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>
