Regular Expressions 101

Community Patterns

1...45678...130

Get ip address (only ipv4) Validator

0

Regular Expression
.NET 7.0 (C#)

@"
(?:(?:[a-f0-9]*)?:){1,7}[a-f0-9]*|(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)
"
gmi

Description

Get ip address (only ipv4) Validator

Submitted by Mr.Tang - a year ago (Last modified a year ago)