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
r"
data/(?P<yyyy>[12]\d{3})(?P<mm>0?[1-9]|1[0-2])(?P<dd>3[0-1]|[1-2][0-9]|0?[1-9])\b
"
gm
Test String
New
data/20221231/file01.csv
Substitution
Processing...