RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details 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: The rating for this expression. Patrick Timmons
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials