I really don\'t know regexp yet, but sooner or later I will read and learn. But for now I need a regular expression matching a 3 or 4 digit cvv of a credit card so I can valida
To match 3 or 4 digits, use the following regular expression:
/^[0-9]{3,4}$/
Explanation:
^
[0-9]
\d
{3,4}
$