Regular Expressions 101

Community Patterns

1...45678...902

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14})$
/
gm

Description

Submitted by anonymous - 4 months ago