Regular Expressions 101

Library entries

MasterCard validate 2017

Vote

4

Regular Expression
pcre

/
(^5[1-5][0-9]{14}$)|(^2221[0-9]{12}$)|(^222[2-9][0-9]{12}$)|(^22[3-9][0-9]{13}$)|(^2[3-6][0-9]{14}$)|(^2720[0-9]{12}$)|(^27[0-1][0-9]{13}$)
/
gm

Description

Loading markdown...
Submitted by John C - 6 years ago