changing regex to accept 1 digit integers