# File lib/hikidoc.rb, line 871 def until_match(re) while line = gets() if re =~ line ungets line return end yield line end nil end