Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^[+-]?\d*[02468]$
/
gm

Description

matches if the string is an even integer

Submitted by Holz - 8 months ago