G
Guest
I'm trying to match lines that consist of text with a number at the
end
Migration reject cause 4
and I tried this
if (m/(.*) (\d*)$/)
{
print "\$1 is $1 \$2 is $2\n";
}
$1 matched the whole line including the number
if (m/(.*) (\d+)$/)
failed to match. Is there a way to get something to match the text
and the number seperatly?
end
Migration reject cause 4
and I tried this
if (m/(.*) (\d*)$/)
{
print "\$1 is $1 \$2 is $2\n";
}
$1 matched the whole line including the number
if (m/(.*) (\d+)$/)
failed to match. Is there a way to get something to match the text
and the number seperatly?