http://www.perlmonks.org?node_id=983700


in reply to Floating Point/Integer Regular Expression

Try $RE{num}{real} from Regexp::Common.