optimized digits regex pattern