Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Credit Card Regex
Open Workspace
PCRE (Legacy)
Match
Created 2016-02-12 20:03
1
Regular Expression
/
\b
(?<!
\d.
)(
3
[
47
]
\d
{2}
(
[
-
]
?
)(?!
(
\d
)
\3
{5}
|
123456
|
234567
|
345678
|
424242
|
545454
)
\d
{6}
\2
(?!
(
\d
)
\4
{4}
)
\d
{5}
|
(
(
4
\d
|
5
[
1
-
5
]
|
65
)
\d
{2}
|
6011
)(
[
-
]
?
)(?!
(
\d
)
\8
{3}
|
4242
|
5454
|
1234
|
3456
|
5678
|
2345
|
4567
)
\d
{4}
\7
(?!
(
\d
)
\9
{3}
)
\d
{4}
\7
\d
{4}
)(
\b
|
\s
)(?!
.\d\d
)
/
g
Description
No description provided.
Submitted by
Anonymous