use Regexp::Common qw /number/; while(<DATA>){ chomp; print /\A$RE{num}{hex}\z/ ? 'YES' : 'NO '; print " $_\n"; } __DATA__ 12345 abc1234 foo123 ab123CD
In reply to Re: hex-only regex
by davidrw
in thread hex-only regex
by dwhite20899
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |