Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^20(?:2[0-3]|[01]\d)\d*$
/
gm
Test String
New
20110512192714 20794709157481 20121203175303 20794709157481 20210131201708 20211101050154 20220501022609 79776361952441 20211101050154 20220501022609