Title |
Test
Find
Pattern Title
|
Expression |
^([0-9]{3,4})$ |
Description |
Allows you to check the length of a number (in this case either 3 or 4 digits).
I found it useful when validating Credit Card Identification Codes (CVV2/CVC2/CID) which are either 3 or 4 numerical digits. |
Matches |
123 | 1234 |
Non-Matches |
12 | 12345 |
Author |
Rating:
Patrick Timmons
|
Source |
|
Your Rating |
|
Title: Comment
Name: Howard Rybko
Date: 6/4/2005 11:01:45 AM
Comment:
Perfect thanks!