Regular Expressions 101

Community Patterns

Get ip address (only ipv4) Validator

2

Regular Expression
.NET 7.0 (C#)

@"
(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

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