Regular Expressions 101

Library entries

Simple AWS ARN Regex

Vote

1

Regular Expression
javascript

/
^(arn:(?:aws|aws-cn|aws-us-gov):[\w\d-]+:[\w\d-]*:\d{0,12}:[\w\d-]*\/?[\w\d-]*)(\/.*)?.*$
/
gm

Description

Loading markdown...
Submitted by anonymous - 2 months ago