J
Jack
Hi I am trying to match ONLY alphabetic chars (not digits or anything
else)..
I am finding that
$temp = '14.5a';
if ($temp =~ m/\D+/ and $temp !~ m/\d+/) { print " alpha "; }
Only matches NONDIGITS... ? # . is a non digit but not alphabetic..
how do I test for pure alphabetic ?
Likewise, how do I test for pure numeric dollar amount with a "period"
in them "."- the following doesnt work since the Not equal excludes "."
off the bat..
$temp = '14.5a';
if ($temp =~ m/\d+/ and $temp !~ m/\D+/ and $temp =~ m/\.{1}/) { print
" digit DOT "; }
Any slick ways to change this specific code and keep it simple ?
Thank you,
Jack
else)..
I am finding that
$temp = '14.5a';
if ($temp =~ m/\D+/ and $temp !~ m/\d+/) { print " alpha "; }
Only matches NONDIGITS... ? # . is a non digit but not alphabetic..
how do I test for pure alphabetic ?
Likewise, how do I test for pure numeric dollar amount with a "period"
in them "."- the following doesnt work since the Not equal excludes "."
off the bat..
$temp = '14.5a';
if ($temp =~ m/\d+/ and $temp !~ m/\D+/ and $temp =~ m/\.{1}/) { print
" digit DOT "; }
Any slick ways to change this specific code and keep it simple ?
Thank you,
Jack