if ($text =~ /(\d+)/) {print "Here's the number of apples: $1.\n";}
$text = "I have 4 apples."; if ($text =~ /(\d+)/) {print "Here's the number of apples: $1.\n";}