in reply to Re: Re: Match number with commas
in thread Match number with commas

Well, once you've gotten a match with the above regex, then all you need to do is delete the 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.