in reply to How do I get the value of a number that is part of a string?
$_ = "answer4u"; /(\d+); $num = $1; [download]
$_ = "answer4u"; ($num) = /(\d+)/; [download]