in reply to matching digits and characters
Perhaps it's easier to use Regexp::Common. It takes care of various numeric formats for you as well (if that's what you also want).
use Regexp::Common; $str =~ /$RE{num}{real}/;
|
---|
In Section
Seekers of Perl Wisdom