in reply to Re: Re: Match number with commas
in thread Match number with commas
$num = '654,321'; if ( $num =~ /^\d{1,3}(,\d{3})*$/ ) { $num =~ y/,//d; # delete commas } else { # not a conforming number }
jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.
|
|---|