From: someone@... (Chris) Date: 2001-08-05T01:32:06+09:00 Subject: [ruby-talk:19142] Re: using range of regex in IO.foreach ??? On Sat, 4 Aug 2001 14:57:19 +0900, Dave Thomas wrote in comp.lang.ruby: >> IO.foreach('report.txt') do |line| >> if line =~ /START/../END/ > >Try > > if line =~ /START/ .. line =~ /END/ >The two side of the .. are independent logical expressions. Thanks. Did the trick.