Why are we not using the “+” modifier/identifier in the Credit Card Value regex?? Shouldn’t those numbers also occur one or more times as “+” indicates? Or is it written this way purely because the photo shows each number only used once??
How would you mandate a certain number of numbers, letters, uppercase letters, or characters in a username or password? For example, “password must include 1 uppercase, 1 lowercase, 1 number, and 1 special character”.
Also, are these patterns something the coder creates? Or is there a set of patterns to follow? How do you build a pattern? This was probably answered in the regex article, I had a hard time following it, super new to coding.
" We could use the regex: [0-9]{14,16} which checks that the user provided only numbers and that they entered at least 14 digits and at most 16 digits."
Why don’t we use the min and max attibutes to limit the number of digits to min 14 and max 16?
I have a question about the regex in this lesson: [a-zA-Z0-9]+
Why are the criteria not separated at all and are just a runon? For example, why wouldn’t it be [a-z, A-z, 0-9] or something like that? Why does it not register is as “zA” and still understands you mean “z” and “A” (or “Z” and “0”)?