[REBOL] Re: Extract email address from line
From: dwhiting:europa at: 6-Apr-2005 10:23
On Wednesday, April 6, 2005 you wrote:
> 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?
Not elegant, but this skeleton works:
> log: [
> "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"
> foreach line log [
> b: parse line " "
> foreach field b [
> if found? find field "@" [
> print field
Dick, who STILL checks in every now 'n then;-)
Homepage: http://www.europa.com/~dwhiting Last Updated: February 14, 2003