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
Simple AWS ARN Regex
Open Workspace
JavaScript
Match
Created 2021-05-30 13:34
1
Regular Expression
/
^
(
arn:
(?:
aws
|
aws-cn
|
aws-us-gov
)
:
[
\w\d
-
]
+
:
[
\w\d
-
]
*
:
\d
{0,12}
:
[
\w\d
-
]
*
\/
?
[
\w\d
-
]
*
)(
\/
.
*
)?
.
*
$
/
gm
Description
Simple AWS ARN Regex
Submitted by
Anonymous