in reply to Re: Regex Dollar Amounts
in thread Regex Dollar Amounts
$Amount =~ /-?(\d+)\.?(\d+)/; $intergerpart = $1; $decimalpart = $2; $lengthdecimal = length($decimalpart); if ($lengthdecimal gt 2 || $Amount =~ /[^0-9]\.?[^0-9]/) { display_output($templatefile,); print <<EOF;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Regex Dollar Amounts
by Additude (Initiate) on Oct 19, 2001 at 15:51 UTC |