Regular Expressions 101

Get ip address (only ipv4) Validator

Open Workspace
  • .NET 10.0 (C#)
  • Match
2

Regular Expression

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