Code:
on *:dialog:russel:edit:2: did -ra russel 2 $regsubex($did(russel,2),/^(?:\d(\d)|(\d))?.*$/g,\t)


Is probably better since it allows you to input another single digit without having to backspace the prior digit.