extract digits from a string in unix

Hi all,

i have such string stored in a variable

var1 = 00000120

i want the o/p

var1 = 120

is it possible to have such o/p in ksh/bash ...

thanx in advance for the help

sonu

var1=0000120
echo $var1 | sed 's/^0\+//g'

The extended metacharacter "+" is not portable with all sed versions.

Regards