I recommend Regexp::Common.
use Regexp::Common qw(number); $_ = '#total mean for 530.2 nm = 411.67 W/m**2, dev= 0.2%'; if (/$RE{num}{real}{-keep}/) { print "$1\n"; }
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: regexp help needed
by davorg
in thread regexp help needed
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |