A script to validate credit card numbers and match their type based on the Luhn Algorithm and expected patterns of beginning digits.