From: Dave Thomas Date: 2001-08-04T14:57:19+09:00 Subject: [ruby-talk:19109] Re: using range of regex in IO.foreach ??? someone@home.com (Chris) writes: > IO.foreach('report.txt') do |line| > if line =~ /START/../END/ Try if line =~ /START/ .. line =~ /END/ > When I do this the loop skips everything ahead of the START tag (as > expected), however the END tag is ignored. The two side of the .. are independent logical expressions. Regards Dave