> |Ack, no more: > | > |if (/foo/ .. /bar/) ? > | > |I find this construct terribly useful; I'd hate to see it go. > > Perhaps some other way to accomplish, for example, > > IO#from_to(re1, re2) {|line| ... } > > just an idea. Hi :) Here's another idea: 1) Make #.. a method (Integer#.. creates ranges, for example) 2) Make a shortcut to proc {...} (maybe "&{"? Anything, I don't know) 3) Define Proc#.. to work as a flip-flop 4) while &{ line =~ /abc/ }..&{ line =~ /def/ } Not as easy as before, but almost... What do you think?