"\n" =~ /\n.*\z/; # matches "\n" =~ /.*\z/; # should match but doesn't