On 10/23/07 Mike Morton wrote:
>Here is the problem - I have a bunch of text, like:
>
>James
>McGrath
>advanced
>[EMAIL PROTECTED]
> 
>30
> 
>
>
>douglas
>morrison
>advantage
>[EMAIL PROTECTED]
> 
>30
>
>Formatted exactly like that (love data conversion!!!!) -


I'm on digest so this is a bit delayed, but another way to accomplish this, 
assuming that your data output format is consistent, would be to just remove 
all of the lines that aren't the email address, based on their location in the 
file (line number).  A search/replace like this might work (done on a copy of 
the original file):

Search:
(^[^\r]*\r){3}(^[^\r]*\r)(^[^\r]*\r){5}

Replace:
\2

Then do a Replace All.  This should remove the first three lines, leave you 
with just the email address, and then remove the next five lines, all without 
you having to worry about how the email addresses are formed.  Note, my grep 
skills are rudimentary and I'm sure the above search string could be written 
much more cleanly.

- Brad Ummer

-- 
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to