More robust/intuitive reg-write number parsing