
June 22nd, 2009, 11:00 PM
|
|
Developer Shed
|
|
Join Date: Jun 2007
Posts: 38,067
Time spent in forums: < 1 sec
Reputation Power: 43
|
|
|
Regular Expressions IP Address Validation with .net
This regular expression will check for valid Internet Protocol (IP) address. Here we are going to search four decimal numbers groups, each separated by a dot. each set contains zero to three digits.
Here regular expression check for two group which on concatenation generate a valid IP address. First group select from 3 alternatives which will find decimal number range from 0 to 255 ending with .(dot or period), exactly 3 repetitions and Second group select from 3 alternatives which will find decimal number range from 0 to 255.
Read the full article here: Regular Expressions IP Address Validation with .net
|