Y
Hacker News
new
|
ask
|
show
|
jobs
by
ape4
4699 days ago
Perhaps existing forms make you select the type of card as an extra check.
2 comments
infogulch
4699 days ago
Not a very good reason, if you mistype a cc number it will most likely be completely invalid anyway.
link
larrykubin
4699 days ago
I believe you can tell the type of card with a regular expression:
http://stackoverflow.com/questions/72768/how-do-you-detect-c...
link