perl -e 'print "match\n" if "foo\n" =~ /.{0,}\z/'