Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(?=^.{3,63}$)(?!xn--)([a-z0-9](?:[a-z0-9-]*)[a-z0-9])$
"
gm

Description

Validates an s3 bucket name, reference: https://stackoverflow.com/a/62673054/6014177

Submitted by anonymous - 3 years ago