stackoverflow regex must contain one digit code example Example: stackoverflow regex must contain one digit "^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$"