Credit Card « Regular Expressions « JavaScript Tutorial






26.2.Credit Card
26.2.1.Matching a 16 digit credit card number separated by a single space
26.2.2.Matching a 16 digit credit card number with variable number of space characters
26.2.3.Validate Visa number
26.2.4.Validate MasterCard