From: Marc Heiler Date: 2012-12-10T03:28:53+09:00 Subject: Re: Getting info from array > I have a little problem with obtaining array with word "Failed" > and passing it to new array with ip's that i would like to block. I am not sure what you want. Your description is difficult to read. If you need to scan for matches with the word Failed, try .grep or .scan - these can give you the matches you want to find. http://ruby-doc.org/core-1.9.3/Enumerable.html#method-i-grep Specific example see here: http://stackoverflow.com/questions/3937431/how-to-search-an-array-in-ruby -- Posted via http://www.ruby-forum.com/.