Regular Expressions 101

Community Patterns

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 - 2 months ago