http://qs321.pair.com?node_id=285844


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}/;