- or download this
"\n" =~ /\n.*\z/; # matches
- or download this
"\n" =~ /.*\z/; # doesn't match. i would expect it to match
- or download this
"\n" =~ /[^\n]*\z/; # matches. like expected. but [\n]* is like .*
- or download this
"\n" =~ /.?\z/;
- or download this
"\n" =~ /.{0,}\z/;
- or download this
"f\n" =~ /.?f\z/;