Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
^arn:(aws|aws-cn|aws-us-gov):([a-zA-Z0-9-]+):([a-zA-Z0-9-]*):(\d{12}|):([^:/]+)([:/].*)?$
"
gm

Description

matches aws resources (arn:aws) strings

Submitted by anonymous - 2 days ago