Help for this page
/^\.?\d+\.\d+(?:\.\d+)*/
use strict; ... if ($a =~ /^\.?\d+\.\d+(?:\.\d+)*/) { print "match\n"; }