You could also try this:

source: {
blah blah blah blah [EMAIL PROTECTED] blah blah blah
blah blah [EMAIL PROTECTED] blah blah blah
blah blah blah blah [EMAIL PROTECTED] blah blah
}

lines: difference parse/all source "^/" [""]
foreach line lines [
        words: parse line none
        foreach word words [ if email? load word [ print join "Current user=
 is: " word ] ]
]

Hallvard

Dixit Stuart Hunter (18.54 06.04.2005):

>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
>--=20
>To unsubscribe from the list, just send an email to=20
>lists at rebol.com with unsubscribe as the subject.

Pr=E6tera censeo Carthaginem esse delendam

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to