Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Matches All the even numbers
Open Workspace
PCRE2 (PHP)
Match
Created 2023-11-02 09:35
1
Regular Expression
/
\b
(?:
\d
+
)?
[
24680
]
\b
/
gm
Description
Matches all the even numbers from a given input.
Submitted by
Dashrath Sharma