Perfect guys, thanks. Stuart
On Apr 6, 2005 1:14 PM, Ammon Johnson <[EMAIL PROTECTED]> wrote: > > foreach line read/lines %log-file.txt [ > email: find line "@" > if email [return copy/part find/reverse email " " find email " "] > ] > > That should catch the majority of the cases... > > HTH!! > ~~Ammon ;~> > > > On Apr 6, 2005 10:54 AM, Stuart Hunter <[EMAIL PROTECTED]> wrote: > > > > I have a log file form one of my servers that contains a bunch of > > text, but each line pertains to a user and somewhere in the line there > > will be his/her email address. The lines looks something like this: > > > > blah blah blah blah [EMAIL PROTECTED] blah blah blah > > blah blah [EMAIL PROTECTED] blah blah blah > > blah blah blah blah [EMAIL PROTECTED] blah blah > > > > Because there is no fixed rule about where the email address appears > > in the line I can't use the parse tools I normally use in a log when > > everything is in fixed position. > > > > The unique thing about the email address is that it is the only thing > > that will have an '@' in the middle of it. > > > > I want to send an email to these users to tell them when the system is > > going to be down, how can I extract the email address from each line? > > > > Regards. > > > > Stuart > > -- > > To unsubscribe from the list, just send an email to > > lists at rebol.com with unsubscribe as the subject. > > > > > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. > > -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
