Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(?<!.)[\d,]*[02468](?(?!.)|\.[0]*$)
/
D

Description

Input a number and check if it is even

Submitted by anonymous - 2 days ago