I am using a regular expression ^4[0-9]{15}$
to check credit card information starting with 4
for VISA and that are 16 digits long.
This expression accepts credit card numbers like 4141414141414141aa
which is wrong, as it accepts alpha-characters in the end of a valid credit card number.
How do I fix this?