From: Roger Pack Date: 2009-12-01T07:28:33+09:00 Subject: Re: Searching Text for Multiple Matches > What method should I use to get the first ip address and gateway and > store it, then grab the next set and store that? I'd probably recommend a regular expression. something like a = big_string big_string =~ /something/ or big_string.scan(/something/).each {|match| } -- Posted via http://www.ruby-forum.com/.