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
Storyblok Img2
Open Workspace
JavaScript
Match
Created 2023-01-28 09:36
0
Regular Expression
/
^
(?<modifiers>
\/
(?<crop>
\d
+
x
\d
+
:
\d
+
x
\d
+
)?
\/
?
(?<resize>
(?<flipx>
\-
)?(?<width>
\d
+
)
x
(?<flipy>
\-
)?(?<height>
\d
+
)
)?
\/
?
(?<filters>
filters
\:
(
[^
,
\/
]
+
,
)*(?:
format
\(
(?<format>
\w
+
)
\)
)?
[^
\/
]
*
\/
?
)?
)?(?<id>
\/
f
\/
.
+
)
$
/
mg
Description
Parse img2.storyblok.com URLs
Submitted by
Anonymous