Try it out on these example inputs:

back to RegexSwap.

Credit Card (any)

Regular expression:

^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$

Categories:

Popularity:

You need to be logged in to cast votes on regexes.

Good
0
Bad
0

Author description and comments (0)

Topic by
kasper

2009-01-13
19:38

Description

Any Credit Card number.

You need to be logged in to participate

In order to post your own comments on this regex, you need to be logged in.

Username:

Log in by clicking the login link at the top of the screen