More simple...
my $number; if ( ($number) = $date =~ m/([\d,]+)/ ) { $number =~ s/,//g; }
In reply to Re: regex needed: Capture a single entity from two discontiguous parts.
by explorer
in thread regex needed: Capture a single entity from two discontiguous parts.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |