var re = /(^|[^1-9])0+(?=\d)/g;
alert( "1010+2020".replace( re, "$1" ) );
alert( "010-020+030".replace( re, "$1" ) );
alert( "010*020".replace( re, "$1" ) );
alert( "010 / 020".replace( re, "$1" ) );
alert( "010 + 020".replace( re, "$1" ) );
alert( "000010 - 0000020".replace( re, "$1" ) );
alert( "0 - 0".replace( re, "$1" ) );
alert( "из числа 000010 вычесть 0000020 получим -00000010".replace( re, "$1" ) );