You're welcome! And in that case, I'd change those checks to the following:
die "Not a valid file, Check output!" if $dumpbuf =~ m/[^0-9A-F]/; #ma +tch one die "File contains only zeros, Check output!" if $dumpbuf !~ m/[1-9A-F +]/; #match two
(In particular, note that the second regex should include A-F, since otherwise some valid files will be rejected.)
In reply to Re^3: Regex String
by AppleFritter
in thread Regex String
by egal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |