$_ = "I have 2 numbers: 53147"; if (/(.*?)(\d+)/) { print "Beginning is <$1>,number is <$2>.\n"; } #prints: Beginning is ,number is <2>. # Don't tell me that $1 = "I have ". # Just execute the print statement and show the output.