Community Patterns

Community Library Entry

1

Regular Expression
Created·2023-11-02 09:35
Flavor·PCRE2 (PHP)

/
\b(?:\d+)?[24680]\b
/
gm
Open regex in editor

Description

Matches all the even numbers from a given input.

Submitted by Dashrath Sharma