# File lib/hikidoc.rb, line 835 def gets_unless(re) line = gets() if not line or re =~ line ungets line return nil end line end