Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^(?:(?:[1-9]|[1-9](?:\d{1,2})|10[0-2][0-3])(?:[KM])|(?:[1-9]|[1-3][0-9]|40)G)$
"
gm

Description

Bandwidth value validation: 1-1023K 1-1023M 1-40G

Submitted by Damien Stuart - 2 years ago