Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^([a-zA-Z0-9-_]{0,63}\.?[a-zA-Z0-9-_]{1,63}\.[a-zA-Z0-9-_]{1,63}):?(\d{1,5})?$
"
mig

Description

Port is optional

Submitted by Avaray - 3 years ago