Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^[2-9][0-9]{3}-W(?!00)([0-5][0-3])
/
mg
Input 1
2021-W01 2021-W02 2021-W11 2021-W20 2021-W52 2021-W53 2021-W00 2021-W99 2021-W54 2021-W54 a021-a11 2021-W111 1000-W11
Extraction
2021-W01 2021-W02 2021-W11 2021-W20 2021-W52 2021-W53 2021-W00 2021-W99 2021-W54 2021-W54 a021-a11 2021-W111 1000-W11