awk problem

Say I have string=test99
I would like to extact the number 99 and put it in different variable using shell script including awk as well.

I know it will be easy in Perl :
$_=test99;
/.*(\d+)/;
print "$1";

but how to do it in shell script, can anyone help me, please ...
Thanks

string=test99
string=`echo $string | tr -d '[A-Za-z]'`
echo $string

Using awk:

echo "test99" | awk '{gsub (/[A-Za-z]/,"",$1);print $1}'

depending how consistent your patterns are.
Asuuming the number(s) you want to extract always appear as TRAILING chars in a string:
echo 'test99' | sed -e 's/[^0-9]*\([0-9]*\)$/\1/g'