Title |
Test
Find
Pattern Title
|
Expression |
^(\d{4}-){3}\d{4}$|^(\d{4} ){3}\d{4}$|^\d{16}$ |
Description |
Used to validate Credit Card numbers, Checks if it contains 16 numbers in groups of 4 separated by -, ,or nothing |
Matches |
1111-2323-2312-3434 | 1234343425262837 | 1111 2323 2312 3434 |
Non-Matches |
1111 2323 2312-3434 | 34323423 | 1111-2323-23122-3434 |
Author |
Rating:
Sachin Bhatt
|
Source |
Sachin Bhatt |
Your Rating |
|
Title: Checksum
Name: Alex
Date: 12/12/2011 4:36:09 PM
Comment:
If I'm not mistaken, this isn't a full vet. Credit cards use a checksum to ensure that random numbers aren't passed; this hearkens back to the days when the point of transaction was a completely separate process from validation, verification, and billing.