Regular Expressions 101

  • Python
  • Match
-2

Regular Expression

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