From: Damjan Rems Date: 2008-08-08T19:54:09+09:00 Subject: Regex. How to return multiple lines I have a text file containing some data. Rows are normaly delimited with newline char. I assume that file would be read in one chunk into memory. Is it possible with regex and how to return all lines containing some string. My first thought was to read file in array and process each line, but I guess if possible, operating on single string would be faster. by TheR -- Posted via http://www.ruby-forum.com/.