From: Andrea Carmisciano Date: 2010-05-18T21:36:31+09:00 Subject: Re: Regexp help Luis Parravicini wrote: > On Tue, May 18, 2010 at 7:39 AM, Andrea Carmisciano > wrote: >> >> 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? > > You can do it using a capture group: > http://ruby-doc.org/docs/ruby-doc-bundle/Manual/man-1.4/syntax.html#regexp > and examples here: http://www.regular-expressions.info/brackets.html Thank you, but 'couse I'm quiet stupid, can you write me a pseudo-coded example? For the regex part, not the file open/write part. Thank's again! -- Posted via http://www.ruby-forum.com/.