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
S3 Bucket Info Extractor
Open Workspace
JavaScript
Match
Created 2020-06-16 21:59
0
Regular Expression
/
(
(
https
|
http
)
:
\/
?
\/
?
)?(?<bucket>
[
a
-
z
\-
]
*
)(
\.
s3
\.
)(?<server>
[
a
-
z
\-
\d
]
*
)(
\.
amazonaws
\.
com
\/
)(?<key>
[^
?
\s
]
*
)(
\?
)?(?<extra>
\?
?
.
*
)
/
gi
Description
This one gets from a S3 Bucket URL the bucket name, the zone, and the key
Submitted by
Anonymous