in reply to Re^2: Strange regex to test for newlines: /.*\z/in thread Strange regex to test for newlines: /.*\z/
$ perl -lwe 'print "match" if "foo\n" =~ /[^\n]*\z/' match $ perl -lwe 'print "match" if "foo\n" =~ /.*\z/' [download]