if ( $string =~ /[0-9a-fA-F]+/ ) { # valid number } else { # not valid number }
After reading input validation docs ( especially the ones concerning email address validation ) I get the feeling that there is probably a better way to do this. Any ideas?
Thanks
HiFooIn reply to Validating Hex Numbers by HiFoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |