worked on digit regexp
fixed digit regex