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
Extract AWS accountId from user arn
Open Workspace
JavaScript
Substitution
Created 2015-10-09 01:00
1
Regular Expression
/
^.
*
:
(
\d
+
)
:
(
root
|
(
user
\/
.
*
)
)
$
/
i
Description
Extract AWS accountId from user arn given by get-user action
Submitted by
AlexanderC