From: Jean-Julien Fleck Date: 2010-03-17T05:56:25+09:00 Subject: Re: Need to step through text in Variable Hello Jack > What would be the best way to step through my z variable line by line > and match on the content with REGEX? z.split(/\n/).each do |line| ... end should do what you are looking for. Cheers, -- JJ Fleck PCSI1 Lycée Kléber