[REBOL] Extract email address from line
From: shuntera::gmail::com at: 6-Apr-2005 12:54
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 [user1--company--com] blah blah blah
blah blah [user2--company--com] blah blah blah
blah blah blah blah [user3--company] 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