Regular Expressions 101

Community Patterns

1...34567...186

Match IPv4 Valid

0

Regular Expression
.NET 7.0 (C#)

@"
\b(\d{1,2}|1\d{2}|2[0-4]\d|25[0-5])\b\.\b(\d{1,2}|1\d{2}|2[0-4]\d|25[0-5])\b\.\b(\d{1,2}|1\d{2}|2[0-4]\d|25[0-5])\b\.\b(\d{1,2}|1\d{2}|2[0-4]\d|25[0-5])\b
"
gm

Description

expression to capture valid IP

Submitted by anonymous - a year ago