Hi, I'm newbie to ruby, but I try searching a lot for my problem...

I need to extract from an enormous text file, in natural language, for
two separated element in the same line and put them in a new file.

Example:
IIS - IPSIASAR L. DA VINCI (XN____01) - Responsabile: ENRICO FLAIANO
VIA MONTE S. ROCCO, 15 PINETA SIGNORINI - 67100 L'AQUILA (AQ) - tel.
0862 22112 - fax. 0862 22300            email : ipias_aq / yahoo.it -
url:http://www.istitutoleonardodavinciaq.191.it

I need to extract the code (XN____01) and the relative email
"ipias_aq / yahoo.it", put them in a CSV file or a sort of.

May I do this in ruby?

Thank's very much for any help and so sorry for my bad english...
-- 
Posted via http://www.ruby-forum.com/.