Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^.*:(\d+):(root|(user\/.*))$
/
i

Description

Extract AWS accountId from user arn given by get-user action

Submitted by AlexanderC - 9 years ago