Community Patterns

Community Library Entry

1

Regular Expression
Created·2024-12-02 14:57
Flavor·Python

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

Description

matches aws resources (arn:aws) strings

Submitted by anonymous