Title |
Test
Find
Pattern Title
|
Expression |
(^(4|5)\d{3}-?\d{4}-?\d{4}-?\d{4}|(4|5)\d{15})|(^(6011)-?\d{4}-?\d{4}-?\d{4}|(6011)-?\d{12})|(^((3\d{3}))-\d{6}-\d{5}|^((3\d{14}))) |
Description |
This provides an expression to calidate the four major credit cards. It can be easily broken up to use for a specific type of card. It does not validate the number being a potential real number, only in the correct format. |
Matches |
4111-1234-1234-1234 | 6011123412341234 | 3711-123456-12345 |
Non-Matches |
1234567890123456 | 4111-123-1234-1234 | 412-1234-1234-1234 |
Author |
Rating:
Chris Love
|
Source |
Modified from existing expressions in this library |
Your Rating |
|
Title: false positive
Name: Rob Eberhardt
Date: 1/20/2004 6:39:19 AM
Comment:
6011123412341234567890abcdefghijklmnopqrstuvwxyz