Regular Expressions 101

Community Patterns

Community Library Entry

-2

Regular Expression
Python

r"
((([12]{1}\d\d)|(1-9]\d)|([1-9]))[\.]){3}(([12]{1}\d\d)|([1-9]\d)|([1-9]))
"

Description

allows for all legal IPv4 addresses

Submitted by anonymous - 9 years ago