Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Extract email address from line

From: greggirwin::mindspring::com at: 6-Apr-2005 12:05

Hi Stuart,
>> > 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.
Another approach would be to use block parsing. foreach line lines [ parse to block! line [any [set mail email! break | any-type!]] if mail [ ; send mail ] ] to block! *can* fail with invalid data (e.g. 1xr will try to become a pair! which it can't do, so you have to weigh that risk. -- Gregg