in reply to Re^3: Regex String
in thread Regex String

You could also try the following, as an alternative solution:

die "Invalid file, check output!" unless $dumpbuf =~ /^(?!0*$)[0-9A-F]+$/; # Ensure file contains a hex string other than all 0