Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(?:^|\b(?<!\.))(?:1?\d?\d|2[0-4]\d|25[0-5])(?:\.(?:1?\d?\d|2[0-4]\d|25[0-5])){3}(?=$|[^\w.])|(?:^|\b(?<!\.))(?:1?\d?\d|2[0-4]\d|25[0-5])(?:\.(?:1?\d?\d|2[0-4]\d|25[0-5]))(?:\.\W.*)(?:1?\d?\d|2[0-4]\d|25[0-5])|(?:1?\d?\d|2[0-4]\d|25[0-5])(?:\.(?:1?\d?\d|2[0-4]\d|25[0-5])){2}(?:\.[\W].+)(?:\})
"
gm

Description

match ipv4 dynamic add

Submitted by anonymous - a year ago