From: Maciej Pindela Date: 2009-05-07T20:35:09+09:00 Subject: grep a block of code Hi Lately someone gave me a task, to grep from csv file but a block of code. How to do it ? for example 2 3 4 5 How to use grep to give me all form file wich start with and end with I've tried that way.. puts File.readlines(ARGV[0]).grep(/ * <\/tag>/) Please help -- Posted via http://www.ruby-forum.com/.