y=$<.read x='}(\w{4,})' y.sub!(/if t.{9#{x} e.{4#{x}|if f.{10#{x} e.{4#{x}/,'\1\4')while y=~/ / $><< y