Regular Expression To Validate Credit/Debit Card Issue Number (Two Digits)

A Regular Expression to match a 2-digit number, which can be helpful in validating a Credit/Debit Card issue number.

/^[0-9]{2}$/g

Matches:

  • 12
  • 02
  • 20

Non-matches:

See Also:

Regex Is Copied!